Last active
November 28, 2025 15:36
-
-
Save mallomar/147bc13f90fee36df16c6896d0c79e67 to your computer and use it in GitHub Desktop.
Makes All Progress Bars, Including Those in Project:Title, Green
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local ProgressWidget = require("ui/widget/progresswidget") | |
| local Blitbuffer = require("ffi/blitbuffer") | |
| -- Progress bar colors | |
| local PROGRESS_FILL_COLOR = Blitbuffer.colorFromString("#00AA00") -- Darker, more saturated green | |
| local PROGRESS_BORDER_COLOR = Blitbuffer.COLOR_BLACK | |
| local PROGRESS_BG_COLOR = Blitbuffer.COLOR_WHITE | |
| -- Chapter icon colors | |
| local CHAPTER_ICON_COLOR = Blitbuffer.COLOR_BLACK | |
| local CHAPTER_TEXT_COLOR = Blitbuffer.COLOR_BLACK | |
| -- Override ProgressWidget constructor to apply green fill color globally | |
| local orig_ProgressWidget_new = ProgressWidget.new | |
| function ProgressWidget:new(args) | |
| local widget = orig_ProgressWidget_new(self, args) | |
| widget.fillcolor = PROGRESS_FILL_COLOR | |
| return widget | |
| end | |
| -- Override updateStyle to maintain green fill color after style updates | |
| local orig_ProgressWidget_updateStyle = ProgressWidget.updateStyle | |
| function ProgressWidget:updateStyle(thick, height) | |
| orig_ProgressWidget_updateStyle(self, thick, height) | |
| self.fillcolor = PROGRESS_FILL_COLOR | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment