Merge pull request #4940 from TooWaBoo/Pref-and-TWB

Save space in Preferences -> File Browser Tab
This commit is contained in:
Beep6581
2018-11-09 19:00:36 +01:00
committed by GitHub
2 changed files with 43 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
This file is part of RawTherapee.
Copyright (c) 2016-2018 TooWaBoo
Version 2.85
Version 2.86
RawTherapee is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -113,6 +113,10 @@ window > box {
dialog {
background-color: @bg-grey;
border-radius: 0;
-GtkDialog-button-spacing: 0;
-GtkDialog-content-area-spacing: 0;
-GtkDialog-content-area-border: 0;
-GtkDialog-action-area-border: 0;
}
dialog > box {
padding: 0.666666666666666666em;
@@ -336,9 +340,13 @@ fontchooser scrolledwindow,
/*** end ***************************************************************************************/
/*** Load - Save dialog ************************************************************************/
filechooser {
margin-bottom: 0.25em;
}
filechooser box > box box > button {
filechooser box > box box > button {
margin-top: 0.5em;
margin-right: 0;
}
filechooser image {
@@ -465,7 +473,7 @@ separator,
background-color: transparent;
}
grid separator.horizontal, box separator.horizontal {
margin: 0.166666666666666666em 0;
margin: 0.333333333333333333em 0.166666666666666666em;
padding: 0;
}
grid separator.vertical, box separator.vertical {
@@ -537,12 +545,12 @@ menu separator {
padding: 0;
}
.scrollableToolbar separator:not(.dummy) {
.scrollableToolbar separator.vertical {
background-color: shade(@bg-light-grey,.75);
margin: 0.166666666666666666em;
}
#MyExpander separator {
#MyExpander separator.horizontal {
background-color: @view-grid-border;
margin: 0.333333333333333333em 0.166666666666666666em;
}
@@ -944,7 +952,8 @@ window.csd:not(.fullscreen) #MainNotebook > header.top {
#PrefNotebook > header {
margin: -0.666666666666666666em -0.666666666666666666em 0.333333333333333333em;
}
#PrefNotebook > header tab label {
#PrefNotebook > header tab label,
#AboutNotebook > header tab label {
padding-top: 0.25em;
padding-bottom: 0.25em;
}
@@ -1409,8 +1418,12 @@ combobox entry + button:not(.dummy) {
border-bottom-left-radius: 0;
border-left: none;
}
#PlacesPaned button.combo {
margin: 0 0 calc(0.416666666666666666em - 8px) 0;
margin: 0;
}
#PlacesPaned combobox {
margin-bottom: calc(0.416666666666666666em - 8px);
}
/* Reset button */
@@ -1435,14 +1448,15 @@ colorchooser colorswatch#add-color-button:first-child {
}
/* Save, Cancel, OK ... buttons */
.dialog-action-area button {
dialog .dialog-action-area button {
min-height: 2.166666666666666666em;
margin-top: 1em;
margin: 0.5em 0 0 0.333333333333333333em;
padding: 0;
}
messagedialog .dialog-action-area button {
min-height: 1.833333333333333333em;
margin: -12px 0.5em 0.5em 0.5em;
margin: -12px 0.5em 0.5em;
padding: 0;
}
messagedialog .dialog-action-area button:not(:only-child):nth-child(1) {
margin-right: 0.25em;
@@ -1789,7 +1803,7 @@ radio:disabled {
radiobutton label,
checkbutton label {
margin: 0 0 0 0.416666666666666666em;
margin: 0 0.416666666666666666em;
padding: 0;
}

View File

@@ -1206,7 +1206,7 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
startupdir = Gtk::manage ( new Gtk::Entry () );
Gtk::Button* sdselect = Gtk::manage ( new Gtk::Button () );
sdselect->set_image (*Gtk::manage (new RTImage ("folder-open.png")));
sdselect->set_image (*Gtk::manage (new RTImage ("folder-open-small.png")));
Gtk::RadioButton::Group opts = sdcurrent->get_group();
sdlast->set_group (opts);
@@ -1275,20 +1275,26 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
Gtk::Frame* frmnu = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_MENUOPTIONS")) );
Gtk::Grid* menuGrid = Gtk::manage(new Gtk::Grid());
menuGrid->get_style_context()->add_class("grid-spacing");
setExpandAlignProperties(menuGrid, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
ckbmenuGroupRank = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPRANK")) );
setExpandAlignProperties(ckbmenuGroupRank, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
ckbmenuGroupLabel = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPLABEL")) );
ckbmenuGroupFileOperations = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPFILEOPERATIONS")) );
setExpandAlignProperties(ckbmenuGroupFileOperations, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
ckbmenuGroupProfileOperations = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPPROFILEOPERATIONS")) );
ckbmenuGroupExtProg = Gtk::manage ( new Gtk::CheckButton (M ("PREFERENCES_MENUGROUPEXTPROGS")) );
Gtk::VBox* vbmnu = Gtk::manage ( new Gtk::VBox () );
menuGrid->attach (*ckbmenuGroupRank, 0, 0, 1, 1);
menuGrid->attach (*ckbmenuGroupLabel, 1, 0, 1, 1);
menuGrid->attach (*ckbmenuGroupFileOperations, 0, 1, 1, 1);
menuGrid->attach (*ckbmenuGroupProfileOperations, 1, 1, 1, 1);
menuGrid->attach (*ckbmenuGroupExtProg, 0, 2, 2, 1);
vbmnu->pack_start (*ckbmenuGroupRank, Gtk::PACK_SHRINK, 0);
vbmnu->pack_start (*ckbmenuGroupLabel, Gtk::PACK_SHRINK, 0);
vbmnu->pack_start (*ckbmenuGroupFileOperations, Gtk::PACK_SHRINK, 0);
vbmnu->pack_start (*ckbmenuGroupProfileOperations, Gtk::PACK_SHRINK, 0);
vbmnu->pack_start (*ckbmenuGroupExtProg, Gtk::PACK_SHRINK, 0);
frmnu->add (*vbmnu);
frmnu->add (*menuGrid);
Gtk::Frame* fre = Gtk::manage ( new Gtk::Frame (M ("PREFERENCES_PARSEDEXT")) );
@@ -1360,7 +1366,8 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
// Separation is needed so that a button is not accidentally clicked when one wanted
// to click a spinbox. Ideally, the separation wouldn't require attaching a widget, but how?
Gtk::Label *separator = Gtk::manage (new Gtk::Label());
Gtk::HSeparator *cacheSeparator = Gtk::manage (new Gtk::HSeparator());
cacheSeparator->get_style_context()->add_class("grid-row-separator");
Gtk::Label* clearThumbsLbl = Gtk::manage (new Gtk::Label(M("PREFERENCES_CACHECLEAR_ALLBUTPROFILES")));
setExpandAlignProperties(clearThumbsLbl, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
@@ -1378,7 +1385,7 @@ Gtk::Widget* Preferences::getFileBrowserPanel ()
cacheGrid->attach (*maxThumbHeightSB, 1, 0, 1, 1);
cacheGrid->attach (*maxCacheEntriesLbl, 0, 1, 1, 1);
cacheGrid->attach (*maxCacheEntriesSB, 1, 1, 1, 1);
cacheGrid->attach (*separator, 0, 2, 2, 1);
cacheGrid->attach (*cacheSeparator, 0, 2, 2, 1);
cacheGrid->attach (*clearThumbsLbl, 0, 3, 1, 1);
cacheGrid->attach (*clearThumbsBtn, 1, 3, 1, 1);
if (moptions.saveParamsCache) {