1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:17:34 +00:00

Base+WindowsServer+keymap: Store multiple keymaps in a config

This commit is contained in:
Timur Sultanov 2022-01-19 18:20:42 +03:00 committed by Andreas Kling
parent 5a31697bcf
commit c7bd47c87c
12 changed files with 405 additions and 100 deletions

View file

@ -8,7 +8,7 @@
@GUI::GroupBox {
title: "Mapping"
fixed_height: 200
fixed_height: 150
layout: @GUI::HorizontalBoxLayout {
margins: [16, 8, 8]
@ -25,8 +25,56 @@
fixed_height: 32
icon: "/res/icons/32x32/app-keyboard-mapper.png"
}
}
@GUI::Widget
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
spacing: 2
}
@GUI::ListView {
name: "selected_keymaps"
}
@GUI::Widget {
fixed_height: 24
layout: @GUI::HorizontalBoxLayout {
spacing: 4
}
@GUI::Button {
name: "add_keymap_button"
text: "Add keymap"
}
@GUI::Button {
name: "remove_keymap_button"
text: "Remove keymap"
enabled: false
}
}
}
}
@GUI::GroupBox {
title: "Test input"
layout: @GUI::HorizontalBoxLayout {
margins: [16, 8, 8]
spacing: 16
}
@GUI::Widget {
fixed_width: 32
layout: @GUI::VerticalBoxLayout {
}
@GUI::Label {
fixed_width: 32
fixed_height: 32
icon: "/res/icons/32x32/app-keyboard-settings.png"
}
}
@GUI::Widget {
@ -35,22 +83,8 @@
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
fixed_height: 24
@GUI::Label {
text: "Character mapping file:"
fixed_width: 130
text_alignment: "CenterLeft"
}
@GUI::ComboBox {
name: "character_map_file_combo"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
@ -68,7 +102,6 @@
}
@GUI::TextEditor {
fixed_height: 100
name: "test_typing_area"
}
}