Skip to content

Commit

Permalink
EMCO: Add setters for activeTabCSS and inactiveTabCSS (#54)
Browse files Browse the repository at this point in the history
Add EMCO:setActiveTabCSS(stylesheet) and EMCO:setInactiveTabCSS(stylesheet) which will also apply the changes visually.
Fixes #49
  • Loading branch information
demonnic committed Mar 12, 2023
1 parent 39912f7 commit 9610016
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/resources/emco.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,20 @@ function EMCO:adjustTabBackgrounds()
end
end

--- Sets the inactiveTabCSS
-- @tparam string stylesheet the stylesheet to use for inactive tabs.
function EMCO:setInactiveTabCSS(stylesheet)
self.inactiveTabCSS = stylesheet
self:adjustTabBackgrounds()
end

--- Sets the activeTabCSS
-- @tparam string stylesheet the stylesheet to use for active tab.
function EMCO:setActiveTabCSS(stylesheet)
self.activeTabCSS = stylesheet
self:adjustTabBackgrounds()
end

--- Sets the FG color for the active tab
-- @param color Color string suitable for decho or hecho, or color name eg "purple", or table of colors {r,g,b}
function EMCO:setActiveTabFGColor(color)
Expand Down

0 comments on commit 9610016

Please sign in to comment.