Adding a new test theme + setting an ID to the Partial Paste's

ScrolledWindow
This commit is contained in:
Hombre
2016-04-03 03:30:15 +02:00
parent b7a3c45c7e
commit 49ec26e98b
12 changed files with 841 additions and 1 deletions

View File

@@ -0,0 +1,840 @@
/*
This file is part of RawTherapee.
Copyright (c) 2016 TooWaBoo (v1.16.b1)
Many thanks to the RawTherapee Developer Team for this great piece of software
RawTherapee is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
RawTherapee is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
/*** Change me *** rgb(red,green,blue) *** allowed values from 0 to 255 for each color ***/
@define-color accent-color rgb(35,99,166); /*** Highlight/selected color for List, Dropdown menu, Borders ... ***/
@define-color text-hl-color rgb(210,210,210); /*** Highlight/selected text color ***/
@define-color accent-color2 rgb(35,99,166); /*** Slider, Progressbar, Scrollbar, Tab indicator ***/
@define-color accent-color3 rgb(35,99,166); /*** Selected thumbnail background color ***/
@define-color text-hl-color3 rgb(210,210,210); /*** Selected thumbnail text color ***/
/*** Change me end ************************************************************************/
@define-color text-color #B0B0B0;
@define-color text-hl-color2 #C0C0C0;
@define-color text-tbEntry #C0C0C0;
@define-color bg-dark-grey #242424;
@define-color bg-grey #474747;
@define-color bg-light-grey #595959;
@define-color border-color rgba(255,255,255,.25);
@define-color bg-list-hover rgba(255,255,255,.065);
@define-color bg-scale-entry rgba(0,0,0,.14);
@define-color bg-button-border rgba(0,0,0,.48);
@define-color bg-button-border-hover rgba(0,0,0,.60);
@define-color bg-entry-border rgba(0,0,0,.40);
@define-color bg-button-hover rgba(0,0,0,.22);
@define-color bg-spin-button-hover rgba(0,0,0,.25);
@define-color bg-entry-IPTC @bg-dark-grey;
@define-color view-grid-border #404040;
* {
color: @text-color;
transition: none;
text-shadow: none;
icon-shadow: none;
box-shadow: none;
outline-style: none; /* removes the ugly dotted focus line */
border-image: none;
-GtkButton-child-displacement-x: 0;
-GtkButton-child-displacement-y: 0;
-GtkCheckButton-indicator-size: 16;
-GtkCheckButton-indicator-spacing: 2;
}
.undershoot {
background-image: none; /* removes the dotted scrollbar line */
}
GtkWindow {
background-color: @bg-light-grey;
}
GtkDialog {
background-color: @bg-grey;
-GtkDialog-content-area-spacing: 7;
-GtkDialog-action-area-border: 0;
-GtkDialog-content-area-border: 8;
}
GtkFontChooser,
GtkColorChooser {
-GtkDialog-action-area-border: 4;
-GtkDialog-content-area-border: 0;
}
.frame {
border: none;
}
#PrefNotebook > .frame {
border: 1px solid rgba(0,0,0,.50);
border-top: none;
}
#BatchQueueButtonsMainContainer GtkFrame {
padding: 4px 4px 4px 10px;
}
/*** Add space between buttons and image area***/
#BeforeAfterContainer GtkFrame {
padding: 2px 0 4px;
}
/*** Add space between before/after image ***/
#BeforeAfterContainer GtkContainer:nth-child(1) > GtkContainer:nth-child(2) GtkFrame {
padding-right: 14px;
}
/*** Menu bubble box ***/
GtkPopover {
background-color: @bg-dark-grey;
border: 1px solid @accent-color;
border-radius: 0;
}
.menu {
background-color: @bg-dark-grey;
border: 1px solid @accent-color;
}
.menu .menuitem {
padding: 2px 4px;
}
.menu .menuitem:hover {
background-color: @accent-color;
}
.menu .menuitem:hover * {
color: @text-hl-color;
}
GtkNotebook {
padding: 4px;
background-color: @bg-light-grey;
}
GtkDialog GtkNotebook {
padding: 2px 0 0;
}
#PrefNotebook {
padding: 4px 8px;
}
#RightNotebook {
padding: 0 0 0 4px;
}
GtkPaned {
-GtkPaned-handle-size: 4px;
background-color: transparent;
}
.pane-separator {
background-color: @bg-light-grey;
}
GtkDialog .pane-separator {
background-color: @bg-grey;
}
/*** Separator ***/
.separator {
color: @bg-light-grey;
}
GtkDialog .separator {
color: @border-color;
}
#RightNotebook .separator {
color: @bg-dark-grey;
}
/*** Navigator ***/
#Navigator .separator {
color: @view-grid-border;
}
/*** end ***/
/*** Background color image area***/
GtkDrawingArea {
background-color: @bg-grey;
border: 1px solid rgba(0,0,0,.32);
}
/*** Histogram ***/
#HistogramPanel,
#HistogramArea {
background-color: @bg-dark-grey;
border: none;
}
/*** Histogram RGB-Bar***/
#HistogramRGBArea {
background-color: #808080;
border: none;
}
/*** Navigator ***/
#Navigator GtkDrawingArea {
background-color: @bg-dark-grey;
border: 1px solid @bg-dark-grey;
}
#Navigator {
background-color: @bg-dark-grey;
border-top: 156px solid @bg-light-grey;
}
#RightNotebook GtkDrawingArea {
background-color: @bg-dark-grey;
}
/*** Label ***/
.label {
padding: 0 4px;
}
/*** Increase space between labels in navigater ***/
#Navigator .label {
padding: 6px 0 3px;
}
#Navigator GtkTable .label {
padding: 0 0 4px;
}
/***/
GtkDialog .label,
#ToolPanelNotebook .label,
.notebook tab .label {
padding: 0 1px;
}
.button .label {
padding: 0px;
}
.text-button .label {
padding: 0;
}
/*** Add left and right space between frame and labels ***/
GtkFrame > .label,
#ToolPanelNotebook GtkFrame > .label {
padding: 2px 4px 4px;
}
#BatchQueueButtonsMainContainer GtkFrame:nth-child(3) > .label{
padding: 2px 0px 4px;
}
#MyExpanderTitle .label {
padding: 2px 3px;
}
/*** end ***/
.tooltip {
border-radius: 0;
padding: 0;
}
.tooltip.background {
background-color: @bg-dark-grey;
border: 1px solid @accent-color;
}
/*** PartialPaste ***/
/* #PartialPaste {
background-color: @bg-light-grey;
border: 1px solid @bg-button-border;
}
#PartialPaste GtkViewport {
padding: 5px 10px 2px;
} */
/* #PartialPaste .text-button {
-GtkCheckButton-indicator-spacing: 2;
padding: 0 6px 0 3px;
} */
#PartialPasteHeaderSep {
color: #C0C0C0;
}
#PartialPasteHeader .label {
color: #D5D5D5;
}
/*** end ***/
/*** Scrollbar ***/
.scrollbar.trough {
background-color: rgba(0,0,0,.38);
background-image: none;
border: none;
}
.scrollbar.slider:active {
background-color: shade(@accent-color2,1.12);
}
/*** end ***/
/*** Scale & Progressbar ***/
.scale {
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px rgba(242, 242, 242, 0.1);
-GtkRange-trough-border: 6;
-GtkScale-slider-length: 15;
-GtkRange-slider-width: 15;
}
.scale.trough {
background-color: @bg-scale-entry;
border-color: @bg-dark-grey;
}
.scale.trough.highlight,
#ToolPanelNotebook .scale.trough.highlight {
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px rgba(242, 242, 242, 0.1);
background-image: none;
background-color: @accent-color2;
border: 1px solid @bg-dark-grey;
color: @text-hl-color2;
}
.scale.slider,
#ToolPanelNotebook .scale.slider {
box-shadow: inset 0 2px 0 0 rgba(255, 255, 255, 0.07), inset 0 0 2px 0 rgba(0, 0, 0, 0.12);
background-image: none;
background-color: @accent-color2;
border: 1px solid @bg-dark-grey;
color: @text-hl-color2;
}
.scale.fine-tune {
-GtkRange-trough-border: 5;
}
GtkFontChooser .scale {
-GtkRange-trough-border: 6;
-GtkScale-slider-length: 6;
-GtkRange-slider-width: 19;
}
GtkFontChooser .scale.slider {
border-radius: 0 0 20px 20px;
border: 1px solid @bg-dark-grey;
}
GtkFontChooser .scale.fine-tune {
-GtkRange-trough-border: 5;
}
.scale.slider:active,
#ToolPanelNotebook .scale.slider:active {
border-color: shade (@accent-color2,.55);
}
GtkProgressBar {
-GtkProgressBar-min-vertical-bar-width: 8;
-GtkProgressBar-min-horizontal-bar-height: 8;
-GtkProgressBar-yspacing: 4px;
border-radius: 10px;
box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px rgba(242, 242, 242, 0.1);
}
.progressbar {
background-image: none;
background-color: @accent-color2;
border-color: @bg-dark-grey;
}
GtkProgressBar.trough {
background-image: none;
background-color: @bg-scale-entry;
}
#MainNotebook > GtkGrid GtkProgressBar {
box-shadow: none;
}
#MainNotebook > GtkGrid GtkProgressBar.trough {
background-image: none;
background-color: @bg-dark-grey;
border-color: @bg-dark-grey;
}
/*** end ***/
/*** Load/Save ***/
GtkFileChooserWidget {
background-color: @bg-grey;
}
GtkFileChooserWidget > GtkBox {
border-bottom-color: @bg-dark-grey;
}
GtkFileChooserWidget GtkBox {
background-color: transparent;
}
GtkFileChooserWidget GtkListBox * {
padding-top: 1px;
padding-bottom: 1px;
}
GtkFileChooserWidget GtkListBox {
background-color: @bg-dark-grey;
}
GtkFileChooserWidget .list-row * {
padding: 1px 4px;
}
GtkFileChooserWidget .list-row:hover {
background-color: @bg-list-hover;
}
GtkFileChooserWidget .list-row:hover * {
color: @text-hl-color2;
}
GtkFileChooserWidget .list-row:selected {
background-color: @accent-color;
}
GtkFileChooserWidget .list-row:selected * {
color: @text-hl-color;
}
/*** end ***/
/*** Tab Bars ***/
.notebook tab, .notebook.header {
background-color: @bg-dark-grey;
border-color: @bg-dark-grey;
}
#MainNotebook tab {
padding: 5px;
}
.notebook tab.top {
border-width: 0 0 5px 0;
}
.notebook tab.left {
border-width: 0 5px 0 0;
}
#RightNotebook tab.left,
#PrefNotebook tab,
GtkDialog tab {
padding: 9px;
}
#ToolPanelNotebook tab {
padding: 10px 4px 7px;
}
#MetaPanelNotebook tab {
padding: 8px 4px;
}
.notebook tab:active {
border-color: @accent-color2;
}
/*** end ***/
/*** File Browser ***/
#FileBrowser GtkDrawingArea {
background-color: @bg-grey;
}
#FileBrowser GtkDrawingArea:selected {
background-color: @accent-color3;
color: @text-hl-color3;
}
/*** end ***/
/*** Image ***/
GtkImage {
padding: 0;
}
#MainNotebook > GtkGrid GtkImage {
padding: 1px;
}
#ToolPanelNotebook GtkImage{
padding: 0 4px;
}
#MyExpanderTitle GtkImage{
padding: 0;
}
#ToolPanelNotebook tab GtkImage,
#ToolPanelNotebook .button GtkImage {
padding: 1px 0;
}
GtkDialog .button GtkImage{
padding: 0;
}
GtkFileChooserWidget .button GtkImage{
padding: 0 4px;
}
/*** end ***/
/*** Toolpanel ***/
#ToolPanelNotebook {
background-color: @bg-dark-grey;
padding: 0;
border-top: 4px solid @bg-dark-grey;
}
#ToolPanelNotebook GtkScrolledWindow GtkViewport.frame {
padding: 0 4px;
}
#ToolPanelNotebook .separator {
color: transparent;
}
#ToolPanelNotebook GtkFrame, #PrefNotebook GtkFrame {
border: 1px solid @border-color;
border-radius: 0;
padding: 5px;
}
#ToolPanelNotebook GtkDrawingArea {
background-color: @bg-dark-grey;
border-color: @bg-light-grey;
color: @text-color;
}
#ToolPanelNotebook GtkDrawingArea {
border-radius: 1px; /* BUG: if 0, scale mini sliders look funny */
}
#ExpanderBox #ExpanderBox, #ExpanderBox2, #ExpanderBox3 {
border: 1px solid @border-color;
}
#ExpanderBox, #ExpanderBox2, #ExpanderBox3 {
background-color: @bg-grey;
border-radius: 0;
}
#MyExpanderTitle .label {
color: @text-color;
}
#MyExpanderTitle:hover .label {
color: @text-hl-color2;
}
/*** end ***/
/*** View ***/
.view {
background-color: @bg-dark-grey;
border-color: @view-grid-border;
}
#PrefNotebook .view {
background-color: @bg-grey;
}
#MainNotebook .view.cell:nth-child(2) {
padding: 1px 0px 1px 4px;
}
.view:hover {
background-color: @bg-list-hover;
color: @text-hl-color2;
}
#PrefNotebook .view:hover {
background-color: @bg-light-grey;
color: @text-hl-color2;
}
.view:selected {
color: @text-hl-color;
background-color: @accent-color;
}
#PrefNotebook .view:selected {
color: @text-hl-color;
background-color: @accent-color;
}
/*** end ***/
/*** Metadata ***/
#MetaPanelNotebook {
padding: 8px 11px 0;
}
#MetaPanelNotebook GtkScrolledWindow GtkViewport.frame {
padding: 8px 10px;
}
#MetaPanelNotebook.frame {
background-color: @bg-grey;
border-bottom: none;
border-top: 4px solid @bg-dark-grey;
border-left: 9px solid @bg-dark-grey;
border-right: 9px solid @bg-dark-grey;
}
#MetaPanelNotebook .separator {
color: @border-color;
}
#MetaPanelNotebook.header {
background-color: @bg-dark-grey;
}
#MetaPanelNotebook GtkTreeView {
padding: 1px;
background-color: @bg-grey;
}
#MetaPanelNotebook .frame GtkTreeView {
padding: 0px;
background-color: @bg-entry-IPTC;
}
#MetaPanelNotebook GtkTreeView:hover,
#MetaPanelNotebook .frame GtkTreeView:hover {
background-color: @bg-list-hover;
color: @text-hl-color;
}
#MetaPanelNotebook GtkTreeView:selected,
#MetaPanelNotebook .frame GtkTreeView:selected {
color: @text-hl-color;
background-color: @accent-color;
}
#MetaPanelNotebook GtkTextView {
color: @text-color;
background-color: @bg-entry-IPTC;
padding: 2px 4px;
}
/*** end ***/
/*** Entry ***/
.entry {
background-image: none;
background-color: @bg-scale-entry;
border: 1px solid @bg-entry-border;
border-radius: 0;
padding: 2px 4px;
color: @text-color;
box-shadow: inset 0 1px rgba(0, 0, 0, 0.08), 0 1px rgba(242 , 242, 242, 0.1);
}
.entry:focused:selected {
color: @text-hl-color;
background-color: @accent-color;
}
.entry:not(:focused):not(:insensitive) {/*Workaround*/
color: @text-color;
background-color: transparent;
}
.entry:not(:selected):not(:insensitive) {
color: @text-color;
background-color: @bg-scale-entry;
}
#ToolPanelNotebook .entry {
padding: 0 4px 0 8px;
border-radius: 20px 0 0 20px;
background-color: rgba(255,255,255,.12);
border: 1px solid rgba(0,0,0,.46);
color: @text-tbEntry;
box-shadow: inset 1px 1px 0 1px rgba(0, 0, 0, 0.04), 0 1px rgba(255 , 255, 255, 0.1);
}
#ToolPanelNotebook .entry:focused:selected {
color: @text-hl-color;
background-color: @accent-color;
}
#ToolPanelNotebook .entry:not(:focused):not(:insensitive) {/*Workaround*/
color: @text-tbEntry;
background-color: transparent;
}
#ToolPanelNotebook .entry:not(:selected):not(:insensitive) {
color: @text-tbEntry;
background-color: rgba(255,255,255,.12);
}
#MetaPanelNotebook .entry {
color: @text-color;
background-color: @bg-entry-IPTC;
border: none;
border-radius: 0;
padding: 2px 4px;
box-shadow: none;
}
#MetaPanelNotebook .entry:focused:selected {
color: @text-hl-color;
background-color: @accent-color;
box-shadow: none;
}
#MetaPanelNotebook .entry:not(:focused):not(:insensitive) {/*Workaround*/
color: @text-color;
background-color: transparent;
box-shadow: none;
}
#MetaPanelNotebook .entry:not(:selected):not(:insensitive) {
color: @text-color;
background-color: @bg-entry-IPTC;
box-shadow: none;
}
/*** end ***/
/*** Buttons ***/
.button {
background-color: transparent;
border: 1px solid @bg-button-border;
border-radius: 0;
padding: 3px 4px;
box-shadow: inset 0 1px rgba(242, 242, 242, 0.1), 0 1px rgba(242, 242, 242, 0.1);
background-image: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.14) 40%, rgba(0,0,0,.28));
}
.button.Left + .button:not(.image-button).Right {
border-left: none;
}
GtkComboBox .button {
padding: 4px 3px;
}
#ToolPanelNotebook .button,
GtkDialog .button {
padding: 0px 3px;
}
#BeforeAfterContainer .button {
padding: 2px;
}
/*** Queue ***/
#BatchQueueButtonsMainContainer .button {
padding: 0px 3px;
}
#BatchQueueButtons .button {
padding-top: 6px;
padding-bottom: 6px
}
/***/
/*** Fix: Space between first Retinex Comboboxes ***/
GtkLabel + GtkComboBox + GtkComboBox {
padding-left: 4px;
}
.text-button {
padding: 0 2px 0 0;
}
#ToolPanelNotebook GtkFrame > .text-button {
padding: 0 5px 0 0;
-GtkCheckButton-indicator-spacing: 3;
}
.button.text-button {
padding: 5px 12px;
}
#ToolPanelNotebook .button.text-button,
#PrefNotebook .button.text-button,
GtkFileChooserWidget .button.text-button {
padding: 3px 4px;
}
.spinbutton .button {
background-image: none;
background-color: transparent;
border: none;
border-radius: 0;
padding: 2px;
box-shadow: none;
}
#ToolPanelNotebook .spinbutton .button {
padding: 0;
}
.button:hover {
background-image: linear-gradient(to bottom, rgba(0,0,0,.17), rgba(0,0,0,.27) 40%, rgba(0,0,0,.42));
border-color: @bg-button-border-hover;
}
#ToolPanelNotebook .spinbutton .button:hover {
background-color: @bg-spin-button-hover;
}
.button:active,
.button:checked {
background-image: linear-gradient(to bottom, #292929, #242424 40%, #191919);
background-color: transparent;
border-color: black;
}
#MainNotebook > GtkGrid .button {
padding: 2px;
border: 4px solid @bg-dark-grey;
background-color: transparent;
background-image: none;
box-shadow: none;
}
#MainNotebook tab .button {
padding: 1px;
border-top: 4px solid @bg-dark-grey;
border-bottom: 4px solid @bg-dark-grey;
border-left: none;
border-right: none;
background-color: transparent;
background-image: none;
box-shadow: none;
}
#MainNotebook > GtkGrid .button:hover,
#MainNotebook tab .button:hover {
background-color: rgba(255,255,255,.14);
}
#MainNotebook > GtkGrid .button:active,
#MainNotebook tab .button:active {
background-color: rgba(255,255,255,.2);
}
.view .button {
background-color: #141414;
padding: 1px 5px 2px;
background-image: none;
border: 1px solid black;
box-shadow: none;
}
#fullButton,
#histButton {
padding: 5px;
border: none;
background-color: @bg-dark-grey;
background-image: none;
box-shadow: none;
}
/*** end ***/
/*** Check & Radio buttons ***/
.check,
.check row {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-unchecked.png");
}
.check:checked,
.check row:checked {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-checked.png");
}
.check:insensitive,
.check row:insensitive {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-unchecked-d.png");
}
.check:checked:insensitive,
.check row:checked:insensitive {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-checked-d.png");
}
.check:inconsistent,
.check row:inconsistent {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-inconsistent.png");
}
.check:inconsistent:insensitive,
.check row:inconsistent:insensitive {
-gtk-icon-source: url("./TooWaBlueImages/TWB-checkbox-inconsistent-d.png");
}
.radio,
.radio row {
-gtk-icon-source: url("./TooWaBlueImages/TWB-radio-unchecked.png");
}
.radio:checked,
.radio row:checked {
-gtk-icon-source: url("./TooWaBlueImages/TWB-radio-checked.png");
}
.radio:insensitive,
.radio row:insensitive {
-gtk-icon-source: url("./TooWaBlueImages/TWB-radio-unchecked-d.png");
}
.radio:checked:insensitive,
.radio row:checked:insensitive {
-gtk-icon-source: url("./TooWaBlueImages/TWB-radio-checked-d.png");
}
/*** end ***/
/*** Disabled Items ***/
*:insensitive,
#ToolPanelNotebook *:insensitive {
color: #808080;
box-shadow: none;
}
#ToolPanelNotebook .entry:insensitive {
color: #909090;
background-color: rgba(255,255,255,.04);
box-shadow: none;
}
.button:insensitive {
background-image: none;
background-color: rgba(0,0,0,.10);
border-color: rgba(0,0,0,.30);
box-shadow: none;
}
.spinbutton .button:insensitive {
background-image: none;
background-color: transparent;
border: none;
box-shadow: none;
}
.scale.slider:insensitive,
.scale.trough.highlight:insensitive,
.scale.trough:insensitive,
#ToolPanelNotebook .scale.slider:insensitive,
#ToolPanelNotebook .scale.trough.highlight:insensitive,
#ToolPanelNotebook .scale.trough:insensitive {
background-color: #414141;
box-shadow: none;
}
/*** end ***/

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

View File

@@ -255,7 +255,6 @@ PartialPasteDlg::PartialPasteDlg (const Glib::ustring& title, Gtk::Window* paren
Gtk::Dialog::get_content_area()->pack_start (*vbtop, Gtk::PACK_SHRINK, 2); // TODO replace with get_content_area() with GTK upgrade
Gtk::HBox* hbmain = Gtk::manage (new Gtk::HBox ());
hbmain->set_name("PartialPaste");
hbmain->pack_start (*vbCol1);
hbmain->pack_start (*(Gtk::manage (new Gtk::VSeparator ())));
hbmain->pack_start (*vbCol2);
@@ -263,6 +262,7 @@ PartialPasteDlg::PartialPasteDlg (const Glib::ustring& title, Gtk::Window* paren
hbmain->pack_start (*vbCol3);
scrolledwindow = Gtk::manage ( new Gtk::ScrolledWindow() );
scrolledwindow->set_name("PartialPaste");
scrolledwindow->set_can_focus(true);
scrolledwindow->set_shadow_type(Gtk::SHADOW_NONE);
scrolledwindow->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);