layout: Improved UI layout looks
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
bounds: { x: 0, y: 10, width: 426, height: 229 }
|
bounds: { x: 0, y: 6.33, width: 426, height: 250 }
|
||||||
|
|
||||||
outlines:
|
outlines:
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
bounds: { x: 0, y: 10, width: 410, height: 229 }
|
bounds: { x: 0, y: 6.33, width: 410, height: 250 }
|
||||||
|
|
||||||
outlines:
|
outlines:
|
||||||
default:
|
default:
|
||||||
|
|||||||
@ -1,41 +1,44 @@
|
|||||||
---
|
---
|
||||||
bounds: { x: 10, y: 10, width: 410, height: 229 }
|
bounds: { x: 0, y: 1, width: 360, height: 198 }
|
||||||
|
|
||||||
outlines:
|
outlines:
|
||||||
default:
|
default:
|
||||||
corner_radius: 1
|
corner_radius: 1
|
||||||
bounds: { x: 0, y: 0, width: 37.46341, height: 52 }
|
bounds: { x: 0, y: 0, width: 30.67, height: 40.67 }
|
||||||
altline:
|
altline:
|
||||||
corner_radius: 1
|
corner_radius: 1
|
||||||
bounds: { x: 0, y: 0, width: 48.39024, height: 52 }
|
bounds: { x: 0, y: 0, width: 48, height: 40.67 }
|
||||||
outline7:
|
wide:
|
||||||
corner_radius: 1
|
corner_radius: 1
|
||||||
bounds: { x: 0, y: 0, width: 88.97561, height: 52 }
|
bounds: { x: 0, y: 0, width: 57.33, height: 40.67 }
|
||||||
spaceline:
|
spaceline:
|
||||||
corner_radius: 1
|
corner_radius: 1
|
||||||
bounds: { x: 0, y: 0, width: 150.5853, height: 52 }
|
bounds: { x: 0, y: 0, width: 137.33, height: 40.67 }
|
||||||
|
special:
|
||||||
|
corner_radius: 1
|
||||||
|
bounds: { x: 0, y: 0, width: 39.33, height: 40.67 }
|
||||||
|
|
||||||
views:
|
views:
|
||||||
base:
|
base:
|
||||||
- "q w e r t y u i o p"
|
- "q w e r t y u i o p"
|
||||||
- "a s d f g h j k l"
|
- "a s d f g h j k l"
|
||||||
- "Shift_L z x c v b n m BackSpace"
|
- "Shift_L z x c v b n m BackSpace"
|
||||||
- "show_numbers preferences space . Return"
|
- "show_numbers preferences space period Return"
|
||||||
upper:
|
upper:
|
||||||
- "Q W E R T Y U I O P"
|
- "Q W E R T Y U I O P"
|
||||||
- "A S D F G H J K L"
|
- "A S D F G H J K L"
|
||||||
- "Shift_L Z X C V B N M BackSpace"
|
- "Shift_L Z X C V B N M BackSpace"
|
||||||
- "show_numbers preferences space . Return"
|
- "show_numbers preferences space period Return"
|
||||||
numbers:
|
numbers:
|
||||||
- "1 2 3 4 5 6 7 8 9 0"
|
- "1 2 3 4 5 6 7 8 9 0"
|
||||||
- "@ # $ % & - _ + ( )"
|
- "@ # $ % & - _ + ( )"
|
||||||
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
- "show_symbols , \" ' colon ; ! ? BackSpace"
|
||||||
- "show_letters preferences space . Return"
|
- "show_letters preferences space period Return"
|
||||||
symbols:
|
symbols:
|
||||||
- "~ ` | · √ π τ ÷ × ¶"
|
- "~ ` | · √ π τ ÷ × ¶"
|
||||||
- "© ® £ € ¥ ^ ° * { }"
|
- "© ® £ € ¥ ^ ° * { }"
|
||||||
- "show_numbers \\ / < > = [ ] BackSpace"
|
- "show_numbers_from_symbols \\ / < > = [ ] BackSpace"
|
||||||
- "show_letters preferences space . Return"
|
- "show_letters preferences space period Return"
|
||||||
|
|
||||||
buttons:
|
buttons:
|
||||||
Shift_L:
|
Shift_L:
|
||||||
@ -50,9 +53,14 @@ buttons:
|
|||||||
icon: "edit-clear-symbolic"
|
icon: "edit-clear-symbolic"
|
||||||
preferences:
|
preferences:
|
||||||
action: "show_prefs"
|
action: "show_prefs"
|
||||||
outline: "altline"
|
outline: "special"
|
||||||
icon: "keyboard-mode-symbolic"
|
icon: "keyboard-mode-symbolic"
|
||||||
show_numbers:
|
show_numbers:
|
||||||
|
action:
|
||||||
|
set_view: "numbers"
|
||||||
|
outline: "wide"
|
||||||
|
label: "123"
|
||||||
|
show_numbers_from_symbols:
|
||||||
action:
|
action:
|
||||||
set_view: "numbers"
|
set_view: "numbers"
|
||||||
outline: "altline"
|
outline: "altline"
|
||||||
@ -60,20 +68,21 @@ buttons:
|
|||||||
show_letters:
|
show_letters:
|
||||||
action:
|
action:
|
||||||
set_view: "base"
|
set_view: "base"
|
||||||
outline: "altline"
|
outline: "wide"
|
||||||
label: "ABC"
|
label: "ABC"
|
||||||
show_symbols:
|
show_symbols:
|
||||||
action:
|
action:
|
||||||
set_view: "symbols"
|
set_view: "symbols"
|
||||||
outline: "altline"
|
outline: "altline"
|
||||||
label: "*/="
|
label: "*/="
|
||||||
".":
|
period:
|
||||||
outline: altline
|
outline: "special"
|
||||||
|
label: "."
|
||||||
space:
|
space:
|
||||||
outline: spaceline
|
outline: "spaceline"
|
||||||
label: " "
|
label: " "
|
||||||
Return:
|
Return:
|
||||||
outline: outline7
|
outline: "wide"
|
||||||
icon: "key-enter"
|
icon: "key-enter"
|
||||||
colon:
|
colon:
|
||||||
label: ":"
|
label: ":"
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-color: #5e5c64;
|
border-color: #5e5c64;
|
||||||
border-radius: 2px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.key:active {
|
.key:active {
|
||||||
@ -37,3 +37,38 @@
|
|||||||
background: #1c71d8;
|
background: #1c71d8;
|
||||||
border-color: #3584e4;
|
border-color: #3584e4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#show_numbers {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#show_letters {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#show_symbols {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#show_numbers_from_symbols {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#preferences {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#period {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|
||||||
|
#BackSpace {
|
||||||
|
background: #2b292f;
|
||||||
|
border-color: #3e3a44
|
||||||
|
}
|
||||||
|
|||||||
@ -570,8 +570,8 @@ pub struct Button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: derive from the style/margin/padding
|
// FIXME: derive from the style/margin/padding
|
||||||
const BUTTON_SPACING: f64 = 4.0;
|
const BUTTON_SPACING: f64 = 4.67;
|
||||||
const ROW_SPACING: f64 = 7.0;
|
const ROW_SPACING: f64 = 11.33;
|
||||||
|
|
||||||
/// The graphical representation of a row of buttons
|
/// The graphical representation of a row of buttons
|
||||||
pub struct Row {
|
pub struct Row {
|
||||||
|
|||||||
Reference in New Issue
Block a user