1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

WindowServer+MouseSettings: Make default cursor highlight more visible

A litte smaller, and red with a slightly higher opacity, which
is much easier to make out.
This commit is contained in:
MacDue 2022-06-07 23:27:23 +01:00 committed by Linus Groh
parent d3ed490cb4
commit 44cd973148
3 changed files with 9 additions and 9 deletions

View file

@ -53,7 +53,7 @@
orientation: "Horizontal" orientation: "Horizontal"
max: 230 max: 230
min: 0 min: 0
value: 80 value: 110
} }
@GUI::Label { @GUI::Label {
@ -87,7 +87,7 @@
orientation: "Horizontal" orientation: "Horizontal"
max: 60 max: 60
min: 19 min: 19
value: 30 value: 25
} }
@GUI::Label { @GUI::Label {

View file

@ -66,13 +66,13 @@ void HighlightWidget::apply_settings()
void HighlightWidget::reset_default_values() void HighlightWidget::reset_default_values()
{ {
constexpr auto default_highlight_color = Gfx::Color::NamedColor::Yellow; constexpr auto default_highlight_color = Gfx::Color::NamedColor::Red;
constexpr auto default_highlight_opacity = 80; // (in range of 0-255) constexpr auto default_highlight_opacity = 110; // (in range of 0-255)
// Disable the highlighting by default. // Disable the highlighting by default.
// The range of radii you can configure the highlight to is 20 to 60px, // The range of radii you can configure the highlight to is 20 to 60px,
// anything less than that is treated as 'no highlighting'. // anything less than that is treated as 'no highlighting'.
constexpr auto default_highlight_radius_length = 19; constexpr auto default_highlight_radius_length = 25;
m_highlight_color_input->set_color(default_highlight_color);
m_highlight_opacity_slider->set_value(default_highlight_opacity); m_highlight_opacity_slider->set_value(default_highlight_opacity);
m_highlight_color_input->set_color(default_highlight_color);
m_highlight_radius_slider->set_value(default_highlight_radius_length); m_highlight_radius_slider->set_value(default_highlight_radius_length);
} }

View file

@ -82,9 +82,9 @@ void WindowManager::reload_config()
m_double_click_speed = m_config->read_num_entry("Input", "DoubleClickSpeed", 250); m_double_click_speed = m_config->read_num_entry("Input", "DoubleClickSpeed", 250);
m_buttons_switched = m_config->read_bool_entry("Mouse", "ButtonsSwitched", false); m_buttons_switched = m_config->read_bool_entry("Mouse", "ButtonsSwitched", false);
m_cursor_highlight_radius = m_config->read_num_entry("Mouse", "CursorHighlightRadius", 0); m_cursor_highlight_radius = m_config->read_num_entry("Mouse", "CursorHighlightRadius", 25);
Color default_highlight_color = Color::NamedColor::Yellow; Color default_highlight_color = Color::NamedColor::Red;
default_highlight_color.set_alpha(80); default_highlight_color.set_alpha(110);
m_cursor_highlight_color = Color::from_string(m_config->read_entry("Mouse", "CursorHighlightColor")).value_or(default_highlight_color); m_cursor_highlight_color = Color::from_string(m_config->read_entry("Mouse", "CursorHighlightColor")).value_or(default_highlight_color);
apply_cursor_theme(m_config->read_entry("Mouse", "CursorTheme", "Default")); apply_cursor_theme(m_config->read_entry("Mouse", "CursorTheme", "Default"));