2023-04-10 23:51:53 +03:00
|
|
|
Screen {
|
2023-04-15 06:31:05 +03:00
|
|
|
layers: window menu-popup;
|
2023-04-23 21:29:42 +03:00
|
|
|
overflow: hidden;
|
2023-04-10 23:51:53 +03:00
|
|
|
}
|
|
|
|
|
2023-04-11 01:06:41 +03:00
|
|
|
#paint {
|
2023-04-21 18:49:49 +03:00
|
|
|
layout: vertical;
|
2023-04-11 06:25:32 +03:00
|
|
|
}
|
|
|
|
|
2023-04-21 00:23:29 +03:00
|
|
|
#main_horizontal_split {
|
2023-04-21 18:49:49 +03:00
|
|
|
layout: horizontal;
|
2023-04-10 23:51:53 +03:00
|
|
|
}
|
|
|
|
|
2023-04-21 00:23:29 +03:00
|
|
|
#editing_area {
|
2023-04-21 18:49:49 +03:00
|
|
|
width: 1fr;
|
2023-04-12 22:43:17 +03:00
|
|
|
background: rgb(128, 128, 128);
|
2023-04-11 15:47:47 +03:00
|
|
|
}
|
2023-04-21 00:23:29 +03:00
|
|
|
.-dark-mode #editing_area {
|
2023-04-12 22:43:17 +03:00
|
|
|
background: $surface-lighten-2;
|
|
|
|
}
|
|
|
|
|
2023-04-11 15:47:47 +03:00
|
|
|
|
2023-04-11 15:46:57 +03:00
|
|
|
#canvas {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2023-04-11 15:47:47 +03:00
|
|
|
margin: 1 2;
|
2023-04-11 15:46:57 +03:00
|
|
|
}
|
|
|
|
|
2023-04-11 01:13:46 +03:00
|
|
|
#tools_box {
|
|
|
|
layout: grid;
|
|
|
|
grid-size: 2;
|
|
|
|
grid-gutter: 0 1;
|
|
|
|
grid-columns: 6;
|
|
|
|
grid-rows: 3;
|
2023-04-17 01:42:53 +03:00
|
|
|
padding: 0 1;
|
2023-04-21 18:49:49 +03:00
|
|
|
width: 15;
|
2023-04-11 01:13:46 +03:00
|
|
|
height: 100%;
|
2023-04-17 01:42:53 +03:00
|
|
|
/* can't have a border without taking up a whole cell, and it's more important to show as much of the tools as possible */
|
|
|
|
/* border-bottom: tall $panel-darken-2; */
|
2023-04-12 22:43:17 +03:00
|
|
|
background: $panel-darken-1;
|
2023-04-14 01:33:18 +03:00
|
|
|
overflow: hidden;
|
2023-04-11 01:13:46 +03:00
|
|
|
}
|
|
|
|
|
2023-04-14 01:18:27 +03:00
|
|
|
#tools_box Button {
|
|
|
|
text-style: none !important;
|
|
|
|
}
|
2023-04-11 03:59:59 +03:00
|
|
|
|
2023-04-11 03:52:01 +03:00
|
|
|
#tools_box Button.selected {
|
2023-04-11 04:04:08 +03:00
|
|
|
background: $panel-lighten-3;
|
|
|
|
border-bottom: tall $panel-lighten-2;
|
|
|
|
border-top: tall $panel-darken-2;
|
2023-04-11 03:52:01 +03:00
|
|
|
}
|
|
|
|
|
2023-04-11 06:25:32 +03:00
|
|
|
#colors_box {
|
2023-04-21 18:49:49 +03:00
|
|
|
height: 6;
|
2023-04-11 06:56:47 +03:00
|
|
|
layout: grid;
|
|
|
|
grid-size: 2;
|
|
|
|
grid-columns: 10 1fr;
|
|
|
|
border-top: tall $panel-lighten-2;
|
2023-04-12 22:43:17 +03:00
|
|
|
background: $panel-darken-1;
|
2023-04-11 06:56:47 +03:00
|
|
|
}
|
|
|
|
|
2023-04-12 22:26:07 +03:00
|
|
|
.color_well {
|
|
|
|
border-top: tall $panel-darken-2;
|
|
|
|
border-bottom: tall $panel-lighten-3;
|
|
|
|
}
|
|
|
|
|
2023-04-21 18:04:30 +03:00
|
|
|
#palette_selection_box {
|
2023-04-11 06:56:47 +03:00
|
|
|
max-height: 5;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-04-21 18:04:30 +03:00
|
|
|
#selected_color_char_input {
|
2023-04-20 08:16:27 +03:00
|
|
|
width: 9;
|
2023-04-11 06:56:47 +03:00
|
|
|
height: 4;
|
2023-04-20 08:16:27 +03:00
|
|
|
padding-left: 3;
|
2023-04-11 06:56:47 +03:00
|
|
|
margin-left: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#available_colors {
|
2023-04-11 06:25:32 +03:00
|
|
|
layout: grid;
|
|
|
|
grid-size: 14;
|
|
|
|
grid-gutter: 0 1;
|
2023-04-11 18:20:09 +03:00
|
|
|
grid-columns: 4;
|
2023-04-11 06:25:32 +03:00
|
|
|
grid-rows: 2;
|
2023-04-12 22:27:07 +03:00
|
|
|
height: auto;
|
|
|
|
width: auto;
|
2023-04-14 01:33:18 +03:00
|
|
|
overflow: hidden;
|
2023-04-11 06:25:32 +03:00
|
|
|
}
|
|
|
|
|
2023-04-21 00:35:02 +03:00
|
|
|
Menu {
|
2023-04-13 05:42:48 +03:00
|
|
|
background: $panel;
|
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
Menu.menu_popup {
|
2023-04-13 05:07:38 +03:00
|
|
|
layout: vertical;
|
2023-04-13 05:42:48 +03:00
|
|
|
dock: top;
|
2023-04-15 06:24:51 +03:00
|
|
|
layer: menu-popup;
|
2023-04-13 05:07:38 +03:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2023-04-19 02:05:13 +03:00
|
|
|
min-width: 30;
|
2023-04-19 01:01:37 +03:00
|
|
|
overflow-y: auto;
|
|
|
|
/* calc isn't supported, and this should be determined by the y position anyways, which is set in python */
|
|
|
|
/* max-height: calc(100vh - 3); */
|
|
|
|
max-height: 90vh;
|
2023-04-19 05:56:04 +03:00
|
|
|
/* width: auto doesn't account for the vertical scrollbar... */
|
|
|
|
/* which means it would make a horizontal scrollbar or cut off a character on the right, */
|
|
|
|
/* but I'm accounting for this with padding-right inside the menu item */
|
2023-04-19 01:01:37 +03:00
|
|
|
overflow-x: hidden;
|
2023-04-13 05:07:38 +03:00
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
MenuBar {
|
2023-04-13 03:49:16 +03:00
|
|
|
layout: horizontal;
|
2023-04-13 05:07:38 +03:00
|
|
|
width: 100%;
|
2023-04-13 03:49:16 +03:00
|
|
|
height: auto;
|
|
|
|
dock: top;
|
|
|
|
/* border-bottom: hkey $panel-darken-2; */
|
2023-04-14 01:33:18 +03:00
|
|
|
overflow: hidden;
|
2023-04-13 03:49:16 +03:00
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
MenuItem {
|
2023-04-13 03:49:16 +03:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2023-04-24 08:01:02 +03:00
|
|
|
text-style: none;
|
2023-04-13 03:49:16 +03:00
|
|
|
}
|
2023-04-24 07:56:51 +03:00
|
|
|
MenuItem.grayed {
|
|
|
|
color: #777;
|
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
Separator {
|
2023-04-19 01:01:37 +03:00
|
|
|
width: 100%;
|
|
|
|
height: 1;
|
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
Menu Button {
|
2023-04-13 03:49:16 +03:00
|
|
|
border: none;
|
|
|
|
height: 3;
|
2023-04-16 04:16:18 +03:00
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
MenuBar Button {
|
2023-04-17 03:33:29 +03:00
|
|
|
width: auto;
|
|
|
|
min-width: 0;
|
2023-04-15 06:31:05 +03:00
|
|
|
}
|
2023-04-21 00:35:02 +03:00
|
|
|
Menu.menu_popup Button {
|
2023-04-19 02:04:16 +03:00
|
|
|
min-width: 1fr;
|
2023-04-16 04:16:18 +03:00
|
|
|
text-align: left;
|
2023-04-19 05:56:04 +03:00
|
|
|
/* This compensates for the scrollbar, so text isn't cut off (though it also applies when there's no scrollbar) */
|
|
|
|
padding-right: 1;
|
2023-04-16 04:16:18 +03:00
|
|
|
}
|
2023-04-15 06:31:05 +03:00
|
|
|
|
2023-04-21 00:46:48 +03:00
|
|
|
Window {
|
2023-04-15 06:31:05 +03:00
|
|
|
dock: top;
|
|
|
|
layer: window;
|
|
|
|
background: $surface;
|
|
|
|
border: outer $panel-darken-2;
|
|
|
|
layout: vertical;
|
|
|
|
align: center middle;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-21 00:46:48 +03:00
|
|
|
WindowTitleBar {
|
2023-04-15 06:31:05 +03:00
|
|
|
layout: horizontal;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
background: $accent;
|
|
|
|
color: auto;
|
|
|
|
text-style: bold;
|
|
|
|
}
|
2023-04-21 00:46:48 +03:00
|
|
|
WindowTitleBar Button {
|
2023-04-15 06:31:05 +03:00
|
|
|
max-width: 6;
|
2023-04-16 04:39:57 +03:00
|
|
|
height: 3;
|
2023-04-15 06:31:05 +03:00
|
|
|
}
|
|
|
|
.window_title {
|
|
|
|
width: 1fr;
|
|
|
|
height: 100%;
|
|
|
|
content-align: left middle;
|
|
|
|
padding-left: 1;
|
|
|
|
}
|
2023-04-21 07:31:04 +03:00
|
|
|
.window_close {
|
2023-04-21 07:34:08 +03:00
|
|
|
background: $panel;
|
2023-04-21 07:31:04 +03:00
|
|
|
border: inner $panel-darken-1;
|
|
|
|
border-top: inner $panel-lighten-1;
|
|
|
|
border-left: inner $panel-lighten-1;
|
|
|
|
}
|
|
|
|
.window_close:hover {
|
2023-04-21 07:34:08 +03:00
|
|
|
background: $panel-darken-1;
|
2023-04-21 07:31:04 +03:00
|
|
|
border: inner $panel-darken-3;
|
2023-04-21 07:34:08 +03:00
|
|
|
border-top: inner $panel-lighten-1;
|
|
|
|
border-left: inner $panel-lighten-1;
|
2023-04-21 07:31:04 +03:00
|
|
|
}
|
|
|
|
/* :active doesn't seem to be supported,
|
|
|
|
and .-active doesn't apply until after click,
|
2023-04-21 07:34:08 +03:00
|
|
|
at which point the window is closed, generally. */
|
2023-04-21 07:31:04 +03:00
|
|
|
.window_close.-active {
|
|
|
|
border: inner $panel-lighten-1;
|
|
|
|
border-top: inner $panel-darken-3;
|
|
|
|
border-left: inner $panel-darken-3;
|
|
|
|
}
|
|
|
|
|
2023-04-15 06:31:05 +03:00
|
|
|
.window_content {
|
|
|
|
layout: vertical;
|
|
|
|
overflow: auto;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
background: $background;
|
|
|
|
}
|
2023-04-21 00:46:48 +03:00
|
|
|
DialogWindow .window_content {
|
2023-04-15 06:31:05 +03:00
|
|
|
background: $surface;
|
|
|
|
}
|
|
|
|
|
2023-04-20 23:44:11 +03:00
|
|
|
.file_dialog_window .window_content {
|
2023-04-15 06:31:05 +03:00
|
|
|
padding: 2 4;
|
2023-04-15 08:25:31 +03:00
|
|
|
width: 80;
|
|
|
|
height: 30;
|
2023-04-15 06:31:05 +03:00
|
|
|
}
|
2023-04-20 23:44:11 +03:00
|
|
|
.file_dialog_window .window_content Input {
|
2023-04-15 06:31:05 +03:00
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 1;
|
|
|
|
}
|
2023-04-20 23:44:11 +03:00
|
|
|
.file_dialog_window .window_content DirectoryTree {
|
2023-04-15 08:25:31 +03:00
|
|
|
height: 15;
|
|
|
|
margin-bottom: 1;
|
|
|
|
}
|
2023-04-20 23:44:11 +03:00
|
|
|
.file_dialog_window .window_content Button {
|
2023-04-15 06:31:05 +03:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-15 08:45:23 +03:00
|
|
|
|
2023-04-25 03:21:40 +03:00
|
|
|
CharacterSelectorDialogWindow DataTable {
|
2023-04-20 07:29:14 +03:00
|
|
|
width: auto;
|
|
|
|
}
|
2023-04-25 03:21:40 +03:00
|
|
|
CharacterSelectorDialogWindow .ok,
|
2023-04-21 00:46:48 +03:00
|
|
|
CharacterSelectorDialogWindow .cancel {
|
2023-04-25 03:21:40 +03:00
|
|
|
margin: 1;
|
2023-04-20 07:29:14 +03:00
|
|
|
}
|
|
|
|
|
2023-04-20 23:00:38 +03:00
|
|
|
#about_paint_dialog .window_content {
|
|
|
|
padding: 2 4;
|
|
|
|
width: 50;
|
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-20 07:29:14 +03:00
|
|
|
|
2023-04-20 23:16:10 +03:00
|
|
|
#help_dialog .window_content {
|
|
|
|
padding: 2 4;
|
|
|
|
}
|
|
|
|
#help_dialog .help_text {
|
|
|
|
width: 80;
|
|
|
|
height: auto;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
2023-04-22 02:30:37 +03:00
|
|
|
#zoom_dialog .window_content {
|
|
|
|
padding: 2 4;
|
|
|
|
width: 50;
|
|
|
|
/* width: auto; */
|
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-28 22:22:27 +03:00
|
|
|
|
|
|
|
#zoom_dialog .buttons,
|
|
|
|
#attributes_dialog .buttons {
|
2023-04-25 03:33:12 +03:00
|
|
|
layout: horizontal;
|
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-28 22:22:27 +03:00
|
|
|
#zoom_dialog .buttons Button,
|
|
|
|
#attributes_dialog .buttons Button {
|
2023-04-25 03:33:12 +03:00
|
|
|
width: auto;
|
|
|
|
margin: 1;
|
|
|
|
}
|
2023-04-22 02:30:37 +03:00
|
|
|
|
2023-04-28 22:07:58 +03:00
|
|
|
#attributes_dialog .window_content {
|
|
|
|
padding: 2 4;
|
|
|
|
width: 50;
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
#attributes_dialog Horizontal,
|
|
|
|
#attributes_dialog Vertical {
|
|
|
|
height: auto;
|
|
|
|
width: auto;
|
|
|
|
padding: 1 2;
|
|
|
|
}
|
2023-04-28 22:22:49 +03:00
|
|
|
#attributes_dialog Input {
|
2023-04-28 22:27:15 +03:00
|
|
|
width: 20;
|
2023-04-28 22:22:49 +03:00
|
|
|
}
|
2023-04-28 22:07:58 +03:00
|
|
|
|
2023-04-23 21:29:42 +03:00
|
|
|
EditColorsDialogWindow .window_content {
|
|
|
|
padding: 2 4;
|
|
|
|
width: 65;
|
|
|
|
/* align-horizontal: center; */
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
EditColorsDialogWindow .color_grid {
|
|
|
|
layout: grid;
|
|
|
|
grid-size: 8;
|
|
|
|
grid-gutter: 1 2;
|
|
|
|
grid-columns: 5;
|
|
|
|
grid-rows: 2;
|
|
|
|
height: auto;
|
|
|
|
/* width: auto; */
|
|
|
|
overflow: hidden;
|
|
|
|
margin-bottom: 2;
|
|
|
|
}
|
|
|
|
|
2023-04-21 01:31:35 +03:00
|
|
|
MessageBox .window_content {
|
2023-04-15 08:59:16 +03:00
|
|
|
width: 50;
|
2023-04-17 09:46:52 +03:00
|
|
|
height: auto;
|
2023-04-15 08:45:23 +03:00
|
|
|
}
|
2023-04-21 01:31:35 +03:00
|
|
|
MessageBox .window_content Button {
|
2023-04-15 08:45:23 +03:00
|
|
|
width: auto;
|
2023-04-17 09:46:52 +03:00
|
|
|
min-width: 10;
|
2023-04-15 08:45:23 +03:00
|
|
|
height: auto;
|
2023-04-15 08:59:16 +03:00
|
|
|
margin-right: 1;
|
|
|
|
margin-top: 1;
|
|
|
|
}
|
2023-04-21 01:31:35 +03:00
|
|
|
MessageBox .message_box_icon {
|
2023-04-15 08:59:16 +03:00
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
padding-left: 2;
|
|
|
|
}
|
2023-04-21 01:31:35 +03:00
|
|
|
MessageBox .main_content {
|
2023-04-17 09:46:52 +03:00
|
|
|
padding: 1 2;
|
2023-04-15 08:59:16 +03:00
|
|
|
width: 1fr;
|
2023-04-17 09:46:52 +03:00
|
|
|
height: auto;
|
|
|
|
}
|
2023-04-21 01:31:35 +03:00
|
|
|
MessageBox .window_content Horizontal {
|
2023-04-17 09:46:52 +03:00
|
|
|
height: auto;
|
2023-04-15 08:45:23 +03:00
|
|
|
}
|
2023-04-24 05:22:28 +03:00
|
|
|
|
|
|
|
#status_bar {
|
|
|
|
background: $panel;
|
|
|
|
height: 3;
|
|
|
|
layout: horizontal;
|
|
|
|
}
|
|
|
|
#status_bar > Static {
|
|
|
|
width: 20;
|
|
|
|
height: 100%;
|
|
|
|
content-align: left middle;
|
2023-04-24 05:40:50 +03:00
|
|
|
border: none;
|
|
|
|
border-top: outer $panel-darken-2;
|
2023-04-24 05:22:28 +03:00
|
|
|
border-bottom: outer $panel-lighten-1;
|
2023-04-24 05:40:50 +03:00
|
|
|
border-left: outer $panel-darken-1;
|
2023-04-24 05:22:28 +03:00
|
|
|
}
|
|
|
|
#status_bar > #status_text {
|
|
|
|
width: 1fr;
|
|
|
|
}
|
2023-04-24 05:40:50 +03:00
|
|
|
#status_bar > #status_dimensions {
|
|
|
|
/* this is the last division */
|
|
|
|
border-right: outer $panel-darken-1;
|
|
|
|
}
|