mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:37:35 +00:00
MouseSettings: Add option to reverse buttons
Add option to reverse primary and secondary buttons in Mouse Settings. - WindowServer.ini: add default entry - switch-mouse-buttons.png: new icon for settings entry - Mouse.gml/MouseWidget.*: new settings dialog - ClientConnection/WindowManager/Server: window message for settings - EventLoop.cpp: swap buttons 1 and 2 if settings are on
This commit is contained in:
parent
5599d22744
commit
0e68550c05
11 changed files with 90 additions and 0 deletions
|
@ -158,4 +158,39 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
title: "Button configuration"
|
||||
fixed_height: 60
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [16, 8, 8]
|
||||
spacing: 2
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 16
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
fixed_width: 32
|
||||
fixed_height: 32
|
||||
name: "switch_buttons_image_label"
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Switch primary and secondary buttons"
|
||||
fixed_width: 201
|
||||
text_alignment: "CenterLeft"
|
||||
name: "switch_buttons_label"
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "switch_buttons_input"
|
||||
fixed_width: 14
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue