Skip to content

Commit

Permalink
Some more minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
b-peri committed Nov 23, 2023
1 parent c8391b9 commit 960a6bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 45 deletions.
37 changes: 8 additions & 29 deletions datashuttle/tui/css/tui_menu.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ ShowConfigsDialog:light > #display_configs_top_container {

#configs_local_path_label {
align: center middle;
padding: 0 0 0 0;
}

#configs_container > Input {
Expand Down Expand Up @@ -215,16 +214,18 @@ TemplateSettingsScreen {
border: tall $panel-lighten-3;
}

#template_inner_horizontal_container{
height: 3;
}

#template_inner_container {
background: $primary-background;
align: center middle;
content-align: center middle;
height: auto;
overflow: auto hidden;
}

#template_inner_horizontal_container{
height: 3;
#template_message_label {
width: auto;
margin: 1 0 0 2;
}

#template_settings_radioset {
Expand All @@ -233,6 +234,7 @@ TemplateSettingsScreen {
background: transparent;
align: center middle;
width: 50%;
margin: 1 0 0 0;
}

#template_settings_input {
Expand All @@ -242,31 +244,14 @@ TemplateSettingsScreen {

#template_sessions_close_button{
dock: right;
height: 3;
layer: top;
}

#tabscreen_template_settings_button{
align: right top;
}

#template_message_label_container{
align: center top;
content-align: center top;
}

#template_other_widgets_container{
align: center top;
content-align: center top;
}

#template_message_label:disabled {
align: center middle;
width: auto;
height: auto;
overflow: auto auto;
}

#template_message_label:disabled {
color: $panel-lighten-3;
link-color: $panel-lighten-3;
Expand All @@ -285,12 +270,6 @@ TemplateSettingsScreen {
#template_top_container:light {
border: tall $panel-darken-3;
background: $boost;
align: center middle;
}

#template_inner_container:light {
background: transparent;
align: center middle;
}

#template_settings_radioset:light:disabled {
Expand Down
16 changes: 8 additions & 8 deletions datashuttle/tui/css/tui_tab.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ TabScreen > TabbedContent {
padding: 0 0 1 0;
}

CreateFoldersTab > Horizontal > Button{
width: 30%;
}

CreateFoldersTab > Horizontal{
align-horizontal: left;
}

#tabscreen_create_tab > Input.-valid {
border: tall $success 60%;
}
Expand All @@ -64,14 +72,6 @@ TabScreen > TabbedContent {
border: tall $error
}

CreateFoldersTab > Horizontal > Button{
width: 30%;
}

CreateFoldersTab > Horizontal{
align-horizontal: left;
}

#template_settings_validation_on_checkbox.-on > .toggle--button{
color: $success;
}
Expand Down
13 changes: 5 additions & 8 deletions datashuttle/tui/screens/template_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class TemplateSettingsScreen(ModalScreen):
These are regexp templates that can be validated against
during folder creation / project validation.
An input is provided to input a `name_template`` for validation. When
the window is closed, the `name_templates` is stored in datashuttle's
An input is provided to input a `name_template` for validation. When
the window is closed, the `name_template` is stored in datashuttle's
persistent settings.
The Create tab validation on Inputs is immediately updated on closing
Expand All @@ -46,8 +46,8 @@ def compose(self):
ses_on = not sub_on

explanation = """
A 'Template' can be set check subject or
session names are formatted in a specific way.
A 'Template' can be set check subject or session names are
formatted in a specific way.
For example:
sub-\d\d_id-.?.?.?_.*
Expand All @@ -67,10 +67,7 @@ def compose(self):
id="template_inner_horizontal_container",
),
Container(
Container(
Label(explanation, id="template_message_label"),
id="template_message_label_container",
),
Label(explanation, id="template_message_label"),
Container(
RadioSet(
RadioButton(
Expand Down

0 comments on commit 960a6bb

Please sign in to comment.