diff options
author | Dmitrii Ubskii <ubskydm@gmail.com> | 2021-06-12 04:50:23 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-13 12:33:15 +0100 |
commit | 8501617fcb750bc8f540dc524faf47ce5b5961c9 (patch) | |
tree | 08cf3feac135e00e8ee302a2f1ba3db7af4816e2 /Userland/Libraries/LibGfx/Palette.h | |
parent | 920b4d730e04a37e7247ce9a456af39a16705188 (diff) | |
download | serenity-8501617fcb750bc8f540dc524faf47ce5b5961c9.zip |
LibGUI+HackStudio: Make gutter a first class element
Gutter -- a space left of the text, before the ruler -- is not a part of
the ruler, nor should it be treated as such. This commit implements
gutter handling in LibGUI::TextEditor as part of mild cleaning up of the
gutter handling (breakpoint icons) in HackStudio's Editor.
This commit also enables separate theming of the gutter.
Diffstat (limited to 'Userland/Libraries/LibGfx/Palette.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Palette.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Palette.h b/Userland/Libraries/LibGfx/Palette.h index fe4cb726fb..f60b698c76 100644 --- a/Userland/Libraries/LibGfx/Palette.h +++ b/Userland/Libraries/LibGfx/Palette.h @@ -92,6 +92,8 @@ public: Color hover_highlight() const { return color(ColorRole::HoverHighlight); } Color rubber_band_fill() const { return color(ColorRole::RubberBandFill); } Color rubber_band_border() const { return color(ColorRole::RubberBandBorder); } + Color gutter() const { return color(ColorRole::Gutter); } + Color gutter_border() const { return color(ColorRole::Gutter); } Color ruler() const { return color(ColorRole::Ruler); } Color ruler_border() const { return color(ColorRole::RulerBorder); } Color ruler_active_text() const { return color(ColorRole::RulerActiveText); } |