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 | |
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')
-rw-r--r-- | Userland/Libraries/LibGfx/Palette.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/SystemTheme.h | 2 |
2 files changed, 4 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); } diff --git a/Userland/Libraries/LibGfx/SystemTheme.h b/Userland/Libraries/LibGfx/SystemTheme.h index 8c1eca5132..f155bd9a1b 100644 --- a/Userland/Libraries/LibGfx/SystemTheme.h +++ b/Userland/Libraries/LibGfx/SystemTheme.h @@ -27,6 +27,8 @@ namespace Gfx { C(ButtonText) \ C(DesktopBackground) \ C(FocusOutline) \ + C(Gutter) \ + C(GutterBorder) \ C(HighlightWindowBorder1) \ C(HighlightWindowBorder2) \ C(HighlightWindowTitle) \ |