GTK3 theme: Add Gedit custom widget styles

This commit is contained in:
Daniel Ruiz de Alegría 2020-02-12 13:23:29 +01:00
parent 2ad509a325
commit 35282b8ad6
8 changed files with 136 additions and 1 deletions

View File

@ -0,0 +1,61 @@
.gedit-document-panel {
background-color: @sidebar_bg;
}
.gedit-document-panel:backdrop {
color: #b0b2b2;
}
.gedit-document-panel row:selected:backdrop {
background-color: #8b8e8f;
}
.gedit-document-panel-group-row,
.gedit-document-panel-group-row:hover {
border-top: 1px solid alpha(currentColor, 0.3);
}
.gedit-document-panel-group-row:first-child,
.gedit-document-panel-group-row:first-child:hover {
border-top: 0px;
}
/* Try to look as the notebook tab close button */
.gedit-document-panel row button.flat {
padding: 0;
margin-top: 8px;
margin-bottom: 8px;
min-width: 18px;
min-height: 18px;
color: alpha(currentColor,0.3);
}
.gedit-document-panel row:hover button.flat {
color: alpha(currentColor,0.5);
}
.gedit-document-panel row button.flat:hover {
color: @theme_fg_color;
}
statusbar {
border-top: 1px solid @borders;
}
.gedit-search-slider {
background-color: @theme_base_color;
padding: 6px;
border-color: @borders;
border-radius: 0 0 3px 3px;
border-width: 0 1px 1px 1px;
border-style: solid;
}
.gedit-search-entry-occurrences-tag {
background-color: @theme_base_color;
background-image: none;
color: shade (@theme_unfocused_fg_color, 0.8);
border: 0px;
margin: 2px;
padding: 2px;
}

View File

@ -2,6 +2,7 @@
* Check and Radio buttons * * Check and Radio buttons *
***************************/ ***************************/
@import url("applications/nautilus/Adwaita.css"); @import url("applications/nautilus/Adwaita.css");
@import url("applications/gedit/Adwaita.css");
* { * {
padding: 0; padding: 0;
-GtkToolButton-icon-spacing: 4; -GtkToolButton-icon-spacing: 4;
@ -5030,6 +5031,7 @@ decoration {
.xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active { .xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active {
box-shadow: inset 4px 0 0 #2777ff; } box-shadow: inset 4px 0 0 #2777ff; }
/* Gedit */
/* XFCE4 panel action buttons */ /* XFCE4 panel action buttons */
#XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image { #XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image {
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;

View File

@ -0,0 +1,61 @@
.gedit-document-panel {
background-color: @sidebar_bg;
}
.gedit-document-panel:backdrop {
color: #b0b2b2;
}
.gedit-document-panel row:selected:backdrop {
background-color: #8b8e8f;
}
.gedit-document-panel-group-row,
.gedit-document-panel-group-row:hover {
border-top: 1px solid alpha(currentColor, 0.3);
}
.gedit-document-panel-group-row:first-child,
.gedit-document-panel-group-row:first-child:hover {
border-top: 0px;
}
/* Try to look as the notebook tab close button */
.gedit-document-panel row button.flat {
padding: 0;
margin-top: 8px;
margin-bottom: 8px;
min-width: 18px;
min-height: 18px;
color: alpha(currentColor,0.3);
}
.gedit-document-panel row:hover button.flat {
color: alpha(currentColor,0.5);
}
.gedit-document-panel row button.flat:hover {
color: @theme_fg_color;
}
statusbar {
border-top: 1px solid @borders;
}
.gedit-search-slider {
background-color: @theme_base_color;
padding: 6px;
border-color: @borders;
border-radius: 0 0 3px 3px;
border-width: 0 1px 1px 1px;
border-style: solid;
}
.gedit-search-entry-occurrences-tag {
background-color: @theme_base_color;
background-image: none;
color: shade (@theme_unfocused_fg_color, 0.8);
border: 0px;
margin: 2px;
padding: 2px;
}

View File

@ -2,6 +2,7 @@
* Check and Radio buttons * * Check and Radio buttons *
***************************/ ***************************/
@import url("applications/nautilus/Adwaita.css"); @import url("applications/nautilus/Adwaita.css");
@import url("applications/gedit/Adwaita.css");
* { * {
padding: 0; padding: 0;
-GtkToolButton-icon-spacing: 4; -GtkToolButton-icon-spacing: 4;
@ -5030,6 +5031,7 @@ decoration {
.xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active { .xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active {
box-shadow: inset 4px 0 0 #2777ff; } box-shadow: inset 4px 0 0 #2777ff; }
/* Gedit */
/* XFCE4 panel action buttons */ /* XFCE4 panel action buttons */
#XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image { #XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image {
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;

View File

@ -2,6 +2,7 @@
* Check and Radio buttons * * Check and Radio buttons *
***************************/ ***************************/
@import url("applications/nautilus/Adwaita.css"); @import url("applications/nautilus/Adwaita.css");
@import url("applications/gedit/Adwaita.css");
* { * {
padding: 0; padding: 0;
-GtkToolButton-icon-spacing: 4; -GtkToolButton-icon-spacing: 4;
@ -5051,6 +5052,7 @@ decoration {
.xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active { .xfce4-panel.vertical button:not(#whiskermenu-button):checked, .xfce4-panel.vertical button:not(#whiskermenu-button):active {
box-shadow: inset 4px 0 0 #2777ff; } box-shadow: inset 4px 0 0 #2777ff; }
/* Gedit */
/* XFCE4 panel action buttons */ /* XFCE4 panel action buttons */
#XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image { #XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image {
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;

View File

@ -39,6 +39,9 @@
} }
} }
/* Gedit */
@import url('applications/gedit/Adwaita.css');
/* XFCE4 panel action buttons */ /* XFCE4 panel action buttons */
#XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image { #XfcePanelWindowWrapper > widget > box > #xfce-panel-button > image {
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;

View File

@ -0,0 +1,4 @@
#!/bin/sh
wget https://gitlab.gnome.org/GNOME/gedit/raw/master/gedit/resources/css/gedit.adwaita.css -O Adwaita.css

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
wget https://gitlab.gnome.org/GNOME/nautilus/raw/master/src/resources/css/Adwaita.css --timestamping wget https://gitlab.gnome.org/GNOME/nautilus/raw/master/src/resources/css/Adwaita.css -O Adwaita.css