Use a shared CSS class for styling Open/Save As dialogs

This commit is contained in:
Isaiah Odhner 2023-04-20 16:44:11 -04:00
parent 5b20caf118
commit 2a2b29e30e
2 changed files with 6 additions and 8 deletions

View File

@ -197,24 +197,20 @@ Screen {
background: $surface; background: $surface;
} }
#save_as_dialog .window_content, .file_dialog_window .window_content {
#open_dialog .window_content {
padding: 2 4; padding: 2 4;
width: 80; width: 80;
height: 30; height: 30;
} }
#save_as_dialog .window_content Input, .file_dialog_window .window_content Input {
#open_dialog .window_content Input {
width: 100%; width: 100%;
margin-bottom: 1; margin-bottom: 1;
} }
#save_as_dialog .window_content DirectoryTree, .file_dialog_window .window_content DirectoryTree {
#open_dialog .window_content DirectoryTree {
height: 15; height: 15;
margin-bottom: 1; margin-bottom: 1;
} }
#save_as_dialog .window_content Button, .file_dialog_window .window_content Button {
#open_dialog .window_content Button {
width: auto; width: auto;
height: auto; height: auto;
} }

View File

@ -1039,6 +1039,7 @@ class PaintApp(App):
window = DialogWindow( window = DialogWindow(
id="save_as_dialog", id="save_as_dialog",
classes="file_dialog_window",
title=_("Save As"), title=_("Save As"),
handle_button=handle_button, handle_button=handle_button,
) )
@ -1282,6 +1283,7 @@ class PaintApp(App):
old_window.close() old_window.close()
window = DialogWindow( window = DialogWindow(
id="open_dialog", id="open_dialog",
classes="file_dialog_window",
title=_("Open"), title=_("Open"),
handle_button=handle_button, handle_button=handle_button,
) )