2021-01-04 00:27:24 +03:00
|
|
|
@GUI::Widget {
|
2021-07-27 22:11:06 +03:00
|
|
|
fixed_width: 250
|
2021-04-10 17:08:14 +03:00
|
|
|
fixed_height: 215
|
2021-01-04 00:27:24 +03:00
|
|
|
fill_with_background_color: true
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-01-04 00:27:24 +03:00
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-01-04 00:27:24 +03:00
|
|
|
|
2021-04-10 17:08:14 +03:00
|
|
|
@GUI::HorizontalSeparator {
|
|
|
|
fixed_height: 2
|
2021-01-04 00:27:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-04-10 17:08:14 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {
|
Userland+LibGUI: Add shorthand versions of the Margins constructor
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same
margin on all edges, for example. The constructors follow CSS' style of
specifying margins. The added constructors are:
- Margins(int all): Sets the same margin on all edges.
- Margins(int vertical, int horizontal): Sets the first argument to top
and bottom margins, and the second argument to left and right margins.
- Margins(int top, int vertical, int bottom): Sets the first argument to
the top margin, the second argument to the left and right margins,
and the third argument to the bottom margin.
2021-08-17 03:11:38 +03:00
|
|
|
margins: [8]
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
name: "entry_textbox"
|
|
|
|
font_type: "FixedWidth"
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-10 17:08:14 +03:00
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
name: "label"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 27
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fixed_width: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "backspace_button"
|
|
|
|
text: "Backspace"
|
|
|
|
fixed_width: 65
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxControlKeyword"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "clear_error_button"
|
|
|
|
text: "CE"
|
2021-06-13 22:48:15 +03:00
|
|
|
fixed_width: 56
|
2021-04-10 17:08:14 +03:00
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxControlKeyword"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "clear_button"
|
|
|
|
text: "C"
|
|
|
|
fixed_width: 60
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxControlKeyword"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-10 17:08:14 +03:00
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "mem_clear_button"
|
|
|
|
text: "MC"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxPreprocessorValue"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fixed_width: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "7_button"
|
|
|
|
text: "7"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "8_button"
|
|
|
|
text: "8"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "9_button"
|
|
|
|
text: "9"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "divide_button"
|
|
|
|
text: "/"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxOperator"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "sqrt_button"
|
|
|
|
text: "sqrt"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxFunction"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-10 17:08:14 +03:00
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "mem_recall_button"
|
|
|
|
text: "MR"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxPreprocessorValue"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fixed_width: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "4_button"
|
|
|
|
text: "4"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "5_button"
|
|
|
|
text: "5"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "6_button"
|
|
|
|
text: "6"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "multiply_button"
|
|
|
|
text: "*"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxOperator"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "mod_button"
|
|
|
|
text: "%"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxFunction"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-10 17:08:14 +03:00
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "mem_save_button"
|
|
|
|
text: "MS"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxPreprocessorValue"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fixed_width: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "1_button"
|
|
|
|
text: "1"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "2_button"
|
|
|
|
text: "2"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "3_button"
|
|
|
|
text: "3"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "subtract_button"
|
|
|
|
text: "-"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxOperator"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "inverse_button"
|
|
|
|
text: "1/x"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxFunction"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-10 17:08:14 +03:00
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "mem_add_button"
|
|
|
|
text: "M+"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxPreprocessorValue"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fixed_width: 5
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "0_button"
|
|
|
|
text: "0"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "sign_button"
|
|
|
|
text: "+/-"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "decimal_button"
|
|
|
|
text: "."
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxNumber"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "add_button"
|
|
|
|
text: "+"
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxOperator"
|
2022-02-02 02:48:24 +03:00
|
|
|
focus_policy: "NoFocus"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
name: "equal_button"
|
|
|
|
text: "="
|
|
|
|
fixed_width: 35
|
|
|
|
fixed_height: 28
|
2022-07-15 16:22:20 +03:00
|
|
|
foreground_role: "SyntaxPreprocessorValue"
|
2021-04-10 17:08:14 +03:00
|
|
|
}
|
|
|
|
}
|
2021-01-04 00:27:24 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|