Removed set_border_width from the code, padding and margin values still
to be set in CSS file
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
This file is part of RawTherapee.
|
||||
|
||||
Copyright (c) 2015 DrSlony
|
||||
Copyright (c) 2016 Hombre
|
||||
|
||||
RawTherapee is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -40,23 +41,43 @@
|
||||
background-color: #404040;
|
||||
}
|
||||
|
||||
GtkNotebook {
|
||||
background-color: #404040;
|
||||
GtkBox {
|
||||
border-width: 0;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
GtkGrid {
|
||||
margin: 2px;
|
||||
padding: 0;
|
||||
border-width: 0;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* Affects all frames except in the toolbox */
|
||||
.frame {
|
||||
GtkFrame {
|
||||
border-width: 0;
|
||||
border-color: #303030;
|
||||
border-radius: 4px;
|
||||
padding: 4px 4px 4px 4px;
|
||||
border-radius: 0;
|
||||
border-style: solid;
|
||||
/*border-style: none none none solid;*/
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.filebrowserFrame {
|
||||
padding: 0px;
|
||||
GtkFrame > GtkLabel {
|
||||
color: #D8D8D8;
|
||||
}
|
||||
|
||||
#FileBrowser {
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
/* Frames in Preferences */
|
||||
.prefNotebook GtkFrame {
|
||||
#PrefNotebook GtkFrame {
|
||||
background-color: #3B3B3B;
|
||||
border: 1px solid #505050;
|
||||
border-radius: 4px;
|
||||
@@ -67,7 +88,7 @@ GtkEventBox .frame {
|
||||
border-color: #565656;
|
||||
}
|
||||
|
||||
/*.editorTopPanel .button, .toolBarPanelFileBrowser .button, .editorZoomPanel .button {*/
|
||||
/*.EditorTopPanel .button, .ToolBarPanelFileBrowser .button, .EditorZoomPanel .button {*/
|
||||
.button {
|
||||
padding: 1px;
|
||||
margin: 1px;
|
||||
@@ -75,7 +96,7 @@ GtkEventBox .frame {
|
||||
|
||||
/* Adjusters */
|
||||
.text-button {
|
||||
padding: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Any text-button which is a real button, unlike Slider label */
|
||||
@@ -149,7 +170,7 @@ GtkButton.Right {
|
||||
|
||||
/* [1.23[-][+]] */
|
||||
GtkEntry, GtkSpinButton {
|
||||
padding: 1px 10px 0 1px;
|
||||
padding: 1px;
|
||||
background-color: #262626;
|
||||
}
|
||||
|
||||
@@ -177,11 +198,20 @@ GtkMenu {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#MyExpander {
|
||||
margin: 10px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Tool background */
|
||||
#ExpanderBox {
|
||||
background-color: #363636;
|
||||
border: 1px solid #252525;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #252525;
|
||||
border-radius: 4px;
|
||||
margin: 9px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#ExpanderBox GtkDrawingArea {
|
||||
@@ -192,6 +222,8 @@ GtkMenu {
|
||||
background-color: #3B3B3B;
|
||||
border: 1px solid #313131;
|
||||
border-radius: 4px;
|
||||
margin: 3px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#ExpanderBox GtkFrame GtkDrawingArea {
|
||||
@@ -202,6 +234,8 @@ GtkMenu {
|
||||
background-color: #414141;
|
||||
border: 1px solid #373737;
|
||||
border-radius: 4px;
|
||||
margin: 3px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#ExpanderBox GtkFrame GtkFrame GtkDrawingArea {
|
||||
@@ -213,6 +247,8 @@ GtkMenu {
|
||||
background-color: #3B3B3B;
|
||||
border: 1px solid #2A2A2A;
|
||||
border-radius: 4px;
|
||||
margin: 9px;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#ExpanderBox2 GtkDrawingArea {
|
||||
@@ -233,6 +269,8 @@ GtkMenu {
|
||||
background-color: #474747;
|
||||
border: 1px solid #3D3D3D;
|
||||
border-radius: 4px;
|
||||
margin: 3px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#ExpanderBox2 GtkFrame GtkFrame GtkDrawingArea {
|
||||
@@ -240,6 +278,8 @@ GtkMenu {
|
||||
}
|
||||
|
||||
#MyExpanderTitle {
|
||||
margin: 5px;
|
||||
padding: 3px 1px 3px 1px;
|
||||
font-size: 120%;
|
||||
}
|
||||
#MyExpanderTitle GtkLabel {
|
||||
@@ -257,15 +297,18 @@ GtkMenu {
|
||||
}
|
||||
|
||||
/* Editor tab button */
|
||||
.mainNotebook > GtkGrid GtkLabel, .mainNotebook > GtkGrid GtkImage {
|
||||
#MainNotebook > GtkGrid GtkLabel, #MainNotebook > GtkGrid GtkImage {
|
||||
/* OK */
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
/* File Browser right side tabs - Toolbox, Inspector, Fast Export, Filter */
|
||||
GtkNotebook tab {
|
||||
background-color: #404040;
|
||||
border: 1px solid #505050;
|
||||
border-radius: 4px;
|
||||
background-color: #383838;
|
||||
border-width: 1px;
|
||||
border-style: none;
|
||||
border-color: #262626;
|
||||
border-radius: 0;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
@@ -274,47 +317,122 @@ GtkNotebook tab:hover {
|
||||
}
|
||||
|
||||
GtkNotebook tab:active {
|
||||
background-color: #262626;
|
||||
border-width: 5px;
|
||||
border-color: #989898;
|
||||
}
|
||||
|
||||
/* Get rid of shitty notebook header shadow */
|
||||
GtkNotebook.header.top, GtkNotebook.header.right, GtkNotebook.header.bottom, GtkNotebook.header.left {
|
||||
box-shadow: none;
|
||||
GtkNotebook.top tab {
|
||||
border-bottom-style: solid;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
/* Get rid of notebook header border - too many borders */
|
||||
GtkNotebook.header {
|
||||
border: 0px;
|
||||
GtkNotebook.right tab {
|
||||
border-left-style: solid;
|
||||
padding-left: 8px;
|
||||
}
|
||||
GtkNotebook.bottom tab {
|
||||
border-top-style: solid;
|
||||
padding-top: 8px;
|
||||
}
|
||||
GtkNotebook.left tab {
|
||||
border-right-style: solid;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
/* Get rid of notebook frame border - too many borders */
|
||||
GtkNotebook.top.header, GtkNotebook.right.header, GtkNotebook.bottom.header, GtkNotebook.left.header {
|
||||
box-shadow: none;
|
||||
border-width: 1px;
|
||||
border-color: #262626;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
background-color: #383838;
|
||||
padding: 0;
|
||||
}
|
||||
/* Get rid of notebook header border - too many borders */
|
||||
GtkNotebook.top.header {
|
||||
/* OK */
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
GtkNotebook.right.header {
|
||||
/* OK */
|
||||
border-left-style: solid;
|
||||
}
|
||||
GtkNotebook.bottom.header {
|
||||
/* OK */
|
||||
border-top-style: solid;
|
||||
}
|
||||
GtkNotebook.left.header {
|
||||
/* OK */
|
||||
border-right-style: solid;
|
||||
}
|
||||
GtkNotebook.frame {
|
||||
border: 0px;
|
||||
/* OK */
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
/* Pad notebooks, makes the other borders look nicer */
|
||||
GtkNotebook {
|
||||
padding: 2px;
|
||||
/* OK */
|
||||
background-color: #484848;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
#MainNotebook.header {
|
||||
/* OK */
|
||||
background-color: #2A2A2A;
|
||||
}
|
||||
#MainNotebook > tab {
|
||||
/* OK */
|
||||
background-color: #2A2A2A;
|
||||
}
|
||||
#MainNotebook > tab:hover {
|
||||
/* OK */
|
||||
background-color: #505050;
|
||||
}
|
||||
#MainNotebook > tab:active {
|
||||
/* OK */
|
||||
border-color: #989898;
|
||||
}
|
||||
|
||||
#RightNotebook.header {
|
||||
/* OK */
|
||||
background-color: #2A2A2A;
|
||||
}
|
||||
#RightNotebook > tab {
|
||||
/* OK */
|
||||
background-color: #2A2A2A;
|
||||
}
|
||||
#RightNotebook > tab:hover {
|
||||
/* OK */
|
||||
background-color: #505050;
|
||||
}
|
||||
#RightNotebook > tab:active {
|
||||
/* OK */
|
||||
border-color: #989898;
|
||||
}
|
||||
|
||||
|
||||
/* All tool panels have a frame except for Meta which unlike the rest is a notebook itself.
|
||||
* So we use CSS to make it look like a frame. */
|
||||
.metaPanelNotebook.frame {
|
||||
#MetaPanelNotebook.frame {
|
||||
border: 1px solid #262626;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-top-left-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
border-top: 0px;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
border-top-width: 0;
|
||||
}
|
||||
|
||||
.metaPanelNotebook.header {
|
||||
#MetaPanelNotebook.header {
|
||||
border: 1px solid #262626;
|
||||
border-bottom-left-radius: 0px;
|
||||
border-bottom-right-radius: 0px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom: 0px;
|
||||
border-bottom-width: 0;
|
||||
padding: 5px;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user