Skip to content

Commit 9f4becd

Browse files
committed
Improve style
1 parent b118528 commit 9f4becd

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

tools/config_editor/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ def compose(self) -> ComposeResult:
7979
self.target_select = LabelledSelect("Compilation Target", target_options, allow_blank=False, id="target-select")
8080
yield self.target_select
8181

82-
with Horizontal(id="settings-enable-copy-container"):
83-
yield Label("Copy to arduino-esp32 after compilation", id="enable-copy-label")
84-
82+
with Horizontal(classes="settings-switch-container"):
8583
self.enable_copy_switch = Switch(value=self.app.setting_enable_copy, id="enable-copy-switch")
8684
yield self.enable_copy_switch
8785

86+
yield Label("Copy to arduino-esp32 after compilation")
87+
8888
self.arduino_path_input = LabelledInput("Arduino-esp32 Path", placeholder="Path to your arduino-esp32 installation", value=self.app.setting_arduino_path, id="arduino-path-input")
8989
yield self.arduino_path_input
9090

tools/config_editor/style.tcss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Button.main-menu-button {
5656
# Settings Screen
5757

5858
#settings-scroll-container {
59-
align: center middle;
6059
padding: 1;
6160
}
6261

@@ -74,6 +73,18 @@ Button.main-menu-button {
7473
align: center middle;
7574
}
7675

76+
.settings-switch-container {
77+
height: 4;
78+
}
79+
80+
.settings-switch-container Switch {
81+
margin-right: 2;
82+
}
83+
84+
.settings-switch-container Label {
85+
margin-top: 1;
86+
}
87+
7788
# Editor Screen
7889

7990
#tree-view {

0 commit comments

Comments
 (0)