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:
parent
d3ed490cb4
commit
44cd973148
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/44cd973148 Pull-request: https://github.com/SerenityOS/serenity/pull/14219
3 changed files with 9 additions and 9 deletions
|
@ -53,7 +53,7 @@
|
|||
orientation: "Horizontal"
|
||||
max: 230
|
||||
min: 0
|
||||
value: 80
|
||||
value: 110
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
|
@ -87,7 +87,7 @@
|
|||
orientation: "Horizontal"
|
||||
max: 60
|
||||
min: 19
|
||||
value: 30
|
||||
value: 25
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
|
|
|
@ -66,13 +66,13 @@ void HighlightWidget::apply_settings()
|
|||
|
||||
void HighlightWidget::reset_default_values()
|
||||
{
|
||||
constexpr auto default_highlight_color = Gfx::Color::NamedColor::Yellow;
|
||||
constexpr auto default_highlight_opacity = 80; // (in range of 0-255)
|
||||
constexpr auto default_highlight_color = Gfx::Color::NamedColor::Red;
|
||||
constexpr auto default_highlight_opacity = 110; // (in range of 0-255)
|
||||
// Disable the highlighting by default.
|
||||
// The range of radii you can configure the highlight to is 20 to 60px,
|
||||
// anything less than that is treated as 'no highlighting'.
|
||||
constexpr auto default_highlight_radius_length = 19;
|
||||
m_highlight_color_input->set_color(default_highlight_color);
|
||||
constexpr auto default_highlight_radius_length = 25;
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -82,9 +82,9 @@ void WindowManager::reload_config()
|
|||
|
||||
m_double_click_speed = m_config->read_num_entry("Input", "DoubleClickSpeed", 250);
|
||||
m_buttons_switched = m_config->read_bool_entry("Mouse", "ButtonsSwitched", false);
|
||||
m_cursor_highlight_radius = m_config->read_num_entry("Mouse", "CursorHighlightRadius", 0);
|
||||
Color default_highlight_color = Color::NamedColor::Yellow;
|
||||
default_highlight_color.set_alpha(80);
|
||||
m_cursor_highlight_radius = m_config->read_num_entry("Mouse", "CursorHighlightRadius", 25);
|
||||
Color default_highlight_color = Color::NamedColor::Red;
|
||||
default_highlight_color.set_alpha(110);
|
||||
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"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue