Skip to content

Truly independent web browser

LibGfx: Remove unused Palette color accessors

Shannon Boothe5acfd723de9
diff --git a/Libraries/LibGfx/Palette.h b/Libraries/LibGfx/Palette.h
index 4e33aa7de36..99fe7bdc1d4 100644
--- a/Libraries/LibGfx/Palette.h
+++ b/Libraries/LibGfx/Palette.h
@@ -53,65 +53,18 @@ public:
Color accent() const { return color(ColorRole::Accent); }
Color window() const { return color(ColorRole::Window); }
- Color window_text() const { return color(ColorRole::WindowText); }
Color selection() const { return color(ColorRole::Selection); }
Color inactive_selection() const { return color(ColorRole::InactiveSelection); }
Color light_selection() const { return color(ColorRole::LightSelection); }
Color dark_selection() const { return color(ColorRole::DarkSelection); }
- Color desktop_background() const { return color(ColorRole::DesktopBackground); }
- Color active_window_border1() const { return color(ColorRole::ActiveWindowBorder1); }
- Color active_window_border2() const { return color(ColorRole::ActiveWindowBorder2); }
- Color active_window_title() const { return color(ColorRole::ActiveWindowTitle); }
- Color active_window_title_stripes() const { return color(ColorRole::ActiveWindowTitleStripes); }
- Color active_window_title_shadow() const { return color(ColorRole::ActiveWindowTitleShadow); }
- Color inactive_window_border1() const { return color(ColorRole::InactiveWindowBorder1); }
- Color inactive_window_border2() const { return color(ColorRole::InactiveWindowBorder2); }
- Color inactive_window_title() const { return color(ColorRole::InactiveWindowTitle); }
- Color inactive_window_title_stripes() const { return color(ColorRole::InactiveWindowTitleStripes); }
- Color inactive_window_title_shadow() const { return color(ColorRole::InactiveWindowTitleShadow); }
- Color moving_window_border1() const { return color(ColorRole::MovingWindowBorder1); }
- Color moving_window_border2() const { return color(ColorRole::MovingWindowBorder2); }
- Color moving_window_title() const { return color(ColorRole::MovingWindowTitle); }
- Color moving_window_title_stripes() const { return color(ColorRole::MovingWindowTitleStripes); }
- Color moving_window_title_shadow() const { return color(ColorRole::MovingWindowTitleShadow); }
- Color highlight_window_border1() const { return color(ColorRole::HighlightWindowBorder1); }
- Color highlight_window_border2() const { return color(ColorRole::HighlightWindowBorder2); }
- Color highlight_window_title() const { return color(ColorRole::HighlightWindowTitle); }
- Color highlight_window_title_stripes() const { return color(ColorRole::HighlightWindowTitleStripes); }
- Color highlight_window_title_shadow() const { return color(ColorRole::HighlightWindowTitleShadow); }
- Color highlight_searching() const { return color(ColorRole::HighlightSearching); }
- Color highlight_searching_text() const { return color(ColorRole::HighlightSearchingText); }
- Color menu_stripe() const { return color(ColorRole::MenuStripe); }
- Color menu_base() const { return color(ColorRole::MenuBase); }
- Color menu_base_text() const { return color(ColorRole::MenuBaseText); }
- Color menu_selection() const { return color(ColorRole::MenuSelection); }
- Color menu_selection_text() const { return color(ColorRole::MenuSelectionText); }
Color base() const { return color(ColorRole::Base); }
Color base_text() const { return color(ColorRole::BaseText); }
- Color disabled_text_front() const { return color(ColorRole::DisabledTextFront); }
- Color disabled_text_back() const { return color(ColorRole::DisabledTextBack); }
Color button() const { return color(ColorRole::Button); }
Color button_text() const { return color(ColorRole::ButtonText); }
- Color threed_highlight() const { return color(ColorRole::ThreedHighlight); }
Color threed_shadow1() const { return color(ColorRole::ThreedShadow1); }
- Color threed_shadow2() const { return color(ColorRole::ThreedShadow2); }
- 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::GutterBorder); }
- Color ruler() const { return color(ColorRole::Ruler); }
- Color ruler_border() const { return color(ColorRole::RulerBorder); }
- Color ruler_active_text() const { return color(ColorRole::RulerActiveText); }
- Color ruler_inactive_text() const { return color(ColorRole::RulerInactiveText); }
- Color text_cursor() const { return color(ColorRole::TextCursor); }
- Color focus_outline() const { return color(ColorRole::FocusOutline); }
- Color tray() const { return color(ColorRole::Tray); }
- Color tray_text() const { return color(ColorRole::TrayText); }
Color link() const { return color(ColorRole::Link); }
- Color active_link() const { return color(ColorRole::ActiveLink); }
- Color visited_link() const { return color(ColorRole::VisitedLink); }
Color syntax_comment() const { return color(ColorRole::SyntaxComment); }
Color syntax_number() const { return color(ColorRole::SyntaxNumber); }
@@ -123,13 +76,6 @@ public:
Color syntax_keyword() const { return color(ColorRole::SyntaxKeyword); }
Color syntax_control_keyword() const { return color(ColorRole::SyntaxControlKeyword); }
Color syntax_preprocessor_statement() const { return color(ColorRole::SyntaxPreprocessorStatement); }
- Color syntax_preprocessor_value() const { return color(ColorRole::SyntaxPreprocessorValue); }
- Color syntax_function() const { return color(ColorRole::SyntaxFunction); }
- Color syntax_variable() const { return color(ColorRole::SyntaxVariable); }
- Color syntax_custom_type() const { return color(ColorRole::SyntaxCustomType); }
- Color syntax_namespace() const { return color(ColorRole::SyntaxNamespace); }
- Color syntax_member() const { return color(ColorRole::SyntaxMember); }
- Color syntax_parameter() const { return color(ColorRole::SyntaxParameter); }
Color background() const { return color(ColorRole::ColorSchemeBackground); }
Color foreground() const { return color(ColorRole::ColorSchemeForeground); }
@@ -143,15 +89,6 @@ public:
Color cyan() const { return color(ColorRole::Cyan); }
Color white() const { return color(ColorRole::White); }
- Color bright_black() const { return color(ColorRole::BrightBlack); }
- Color bright_red() const { return color(ColorRole::BrightRed); }
- Color bright_green() const { return color(ColorRole::BrightGreen); }
- Color bright_yellow() const { return color(ColorRole::BrightYellow); }
- Color bright_blue() const { return color(ColorRole::BrightBlue); }
- Color bright_magenta() const { return color(ColorRole::BrightMagenta); }
- Color bright_cyan() const { return color(ColorRole::BrightCyan); }
- Color bright_white() const { return color(ColorRole::BrightWhite); }
-
bool is_dark() const { return flag(FlagRole::IsDark); }
Color color(ColorRole role) const { return m_impl->color(role); }