Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions gresource-extract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# GRESOURCE Extractor for customizing login themes

#### Dependencies

- libxml2-utils

sudo apt install libxml2-utils

Run `./extract.sh` to extract your current theme to `./theme` in the same folder as the extract script.

#### Editing the font
Expand Down
28 changes: 15 additions & 13 deletions gresource-extract/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
FILES=$(find "theme" -type f -printf "%P\n" | xargs -i echo " <file>{}</file>")
if [ -d theme/icons ]; then
cd ./theme/
FILES=$(find ./ -type f | sed 's/^..//' | xargs -i echo " <file>{}</file>")

cat <<EOF >"theme/gnome-shell-theme.gresource.xml"
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/shell/theme">
$FILES
</gresource>
</gresources>
cat <<EOF >"./gnome-shell-theme.gresource.xml"
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/shell/theme">
$FILES
</gresource>
</gresources>
EOF

(
cd "theme"
glib-compile-resources gnome-shell-theme.gresource.xml
)
(
glib-compile-resources gnome-shell-theme.gresource.xml
)

echo "-> theme/gnome-shell-theme.gresource"
echo "-> theme/gnome-shell-theme.gresource"
fi
4 changes: 2 additions & 2 deletions gresource-extract/extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

workdir=${PWD}

if [ ! -d ${workdir}/theme ]; then
mkdir -p ${workdir}/theme
if [ ! -d ${workdir}/theme/icons ]; then
mkdir -p ${workdir}/theme/icons
fi

gst=/usr/share/gnome-shell/gnome-shell-theme.gresource
Expand Down
Binary file removed gresource-extract/theme/background.jpg
Binary file not shown.
Binary file removed gresource-extract/theme/devpy.png
Binary file not shown.
65 changes: 44 additions & 21 deletions gresource-extract/theme/gnome-shell-high-contrast.css
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ StScrollBar {
#panel.solid .panel-button {
color: #ccc;
text-shadow: none; }
#panel.solid .panel-button:hover {
#panel.solid .panel-button:hover, #panel.solid .panel-button:active, #panel.solid .panel-button:overview, #panel.solid .panel-button:focus, #panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
Expand Down Expand Up @@ -801,7 +801,8 @@ StScrollBar {
background-color: #215d9c; }

.datemenu-today-button .date-label {
font-size: 1.5em; }
font-size: 1.5em;
font-weight: 300; }

.world-clocks-header,
.weather-header,
Expand Down Expand Up @@ -987,6 +988,14 @@ StScrollBar {
min-width: 21em; }
.aggregate-menu .popup-menu-icon {
padding: 0 4px; }
.aggregate-menu .popup-sub-menu .popup-menu-item > :first-child:ltr {
/* 12px spacing + 2*4px padding */
padding-left: 20px;
margin-left: 1.09em; }
.aggregate-menu .popup-sub-menu .popup-menu-item > :first-child:rtl {
/* 12px spacing + 2*4px padding */
padding-right: 20px;
margin-right: 1.09em; }

.system-menu-action {
color: #fff;
Expand Down Expand Up @@ -1495,30 +1504,26 @@ StScrollBar {
border-width: 0; }

/* On-screen Keyboard */
.word-suggestions {
font-size: 14pt;
spacing: 12px;
min-height: 20pt; }

#keyboard {
background-color: rgba(46, 52, 54, 0.7); }

.keyboard-layout {
spacing: 10px;
padding: 10px; }

.keyboard-row {
spacing: 15px; }
.key-container {
padding: 4px;
spacing: 4px; }

.keyboard-key {
color: #eeeeec;
background-color: #2e3436;
border-color: rgba(0, 0, 0, 0.7);
box-shadow: inset 0 1px #454f52;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
background-color: #393f3f;
min-height: 2em;
min-width: 2em;
font-size: 14pt;
font-weight: bold;
border-radius: 5px;
border: 1px solid black;
color: white; }
font-size: 16pt;
border-radius: 3px;
border: 1px solid #464d4d;
color: #e5e5e5; }
.keyboard-key:focus {
color: #eeeeec;
text-shadow: 0 1px black;
Expand All @@ -1542,10 +1547,27 @@ StScrollBar {
background-color: #2e3436;
color: #eeeeec;
border-color: rgba(0, 0, 0, 0.7); }
.keyboard-key.default-key {
border-color: #2d3232;
background-color: #1d2020;
background-size: 20px; }
.keyboard-key.enter-key {
border-color: #005684;
background-color: #006098;
background-image: url("resource:///org/gnome/shell/theme/key-enter.svg"); }
.keyboard-key.shift-key-lowercase {
background-image: url("resource:///org/gnome/shell/theme/key-shift.svg"); }
.keyboard-key.shift-key-uppercase {
background-image: url("resource:///org/gnome/shell/theme/key-shift-uppercase.svg"); }
.keyboard-key.shift-key-uppercase:latched {
background-image: url("resource:///org/gnome/shell/theme/key-shift-latched-uppercase.svg"); }
.keyboard-key.hide-key {
background-image: url("resource:///org/gnome/shell/theme/key-hide.svg"); }
.keyboard-key.layout-key {
background-image: url("resource:///org/gnome/shell/theme/key-layout.svg"); }

.keyboard-subkeys {
color: white;
padding: 5px;
-arrow-border-radius: 10px;
-arrow-background-color: rgba(46, 52, 54, 0.7);
-arrow-border-width: 2px;
Expand Down Expand Up @@ -1755,7 +1777,8 @@ StScrollBar {
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4); }

.screen-shield-clock-date {
font-size: 28pt; }
font-size: 28pt;
font-weight: normal; }

.screen-shield-notifications-container {
spacing: 6px;
Expand Down
Binary file removed gresource-extract/theme/gnome-shell-theme.gresource
Binary file not shown.
47 changes: 0 additions & 47 deletions gresource-extract/theme/gnome-shell-theme.gresource.xml

This file was deleted.

80 changes: 49 additions & 31 deletions gresource-extract/theme/gnome-shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*/
/* GLOBALS */
stage {
font-family: 'Source Sans Pro', Sans-Serif;
font-size: 14px;
font-family: Cantarell, Sans-Serif;
font-size: 11pt;
color: #eeeeec; }

/* WIDGETS */
Expand Down Expand Up @@ -736,7 +736,7 @@ StScrollBar {
#panel.solid .panel-button {
color: #ccc;
text-shadow: none; }
#panel.solid .panel-button:hover {
#panel.solid .panel-button:hover, #panel.solid .panel-button:active, #panel.solid .panel-button:overview, #panel.solid .panel-button:focus, #panel.solid .panel-button:checked {
color: white; }
#panel.solid .system-status-icon,
#panel.solid .app-menu-icon > StIcon,
Expand Down Expand Up @@ -801,7 +801,8 @@ StScrollBar {
background-color: #215d9c; }

.datemenu-today-button .date-label {
font-size: 1.5em; }
font-size: 1.5em;
font-weight: 300; }

.world-clocks-header,
.weather-header,
Expand Down Expand Up @@ -987,6 +988,14 @@ StScrollBar {
min-width: 21em; }
.aggregate-menu .popup-menu-icon {
padding: 0 4px; }
.aggregate-menu .popup-sub-menu .popup-menu-item > :first-child:ltr {
/* 12px spacing + 2*4px padding */
padding-left: 20px;
margin-left: 1.09em; }
.aggregate-menu .popup-sub-menu .popup-menu-item > :first-child:rtl {
/* 12px spacing + 2*4px padding */
padding-right: 20px;
margin-right: 1.09em; }

.system-menu-action {
color: #eeeeec;
Expand Down Expand Up @@ -1495,30 +1504,26 @@ StScrollBar {
border-width: 0; }

/* On-screen Keyboard */
.word-suggestions {
font-size: 14pt;
spacing: 12px;
min-height: 20pt; }

#keyboard {
background-color: rgba(46, 52, 54, 0.7); }

.keyboard-layout {
spacing: 10px;
padding: 10px; }

.keyboard-row {
spacing: 15px; }
.key-container {
padding: 4px;
spacing: 4px; }

.keyboard-key {
color: #eeeeec;
background-color: #2e3436;
border-color: rgba(0, 0, 0, 0.7);
box-shadow: inset 0 1px #454f52;
text-shadow: 0 1px black;
icon-shadow: 0 1px black;
background-color: #393f3f;
min-height: 2em;
min-width: 2em;
font-size: 14pt;
font-weight: bold;
border-radius: 5px;
border: 1px solid #1c1f1f;
color: white; }
font-size: 16pt;
border-radius: 3px;
border: 1px solid #464d4d;
color: #e5e5e5; }
.keyboard-key:focus {
color: #eeeeec;
text-shadow: 0 1px black;
Expand All @@ -1542,10 +1547,27 @@ StScrollBar {
background-color: #2e3436;
color: #eeeeec;
border-color: rgba(0, 0, 0, 0.7); }
.keyboard-key.default-key {
border-color: #2d3232;
background-color: #1d2020;
background-size: 20px; }
.keyboard-key.enter-key {
border-color: #005684;
background-color: #006098;
background-image: url("resource:///org/gnome/shell/theme/key-enter.svg"); }
.keyboard-key.shift-key-lowercase {
background-image: url("resource:///org/gnome/shell/theme/key-shift.svg"); }
.keyboard-key.shift-key-uppercase {
background-image: url("resource:///org/gnome/shell/theme/key-shift-uppercase.svg"); }
.keyboard-key.shift-key-uppercase:latched {
background-image: url("resource:///org/gnome/shell/theme/key-shift-latched-uppercase.svg"); }
.keyboard-key.hide-key {
background-image: url("resource:///org/gnome/shell/theme/key-hide.svg"); }
.keyboard-key.layout-key {
background-image: url("resource:///org/gnome/shell/theme/key-layout.svg"); }

.keyboard-subkeys {
color: white;
padding: 5px;
-arrow-border-radius: 10px;
-arrow-background-color: rgba(46, 52, 54, 0.7);
-arrow-border-width: 2px;
Expand Down Expand Up @@ -1640,10 +1662,7 @@ StScrollBar {
icon-shadow: none; }

.login-dialog-logo-bin {
padding: 24px 0px;
background: url(resource:///org/gnome/shell/theme/devpy.png);
background-repeat:no-repeat;
}
padding: 24px 0px; }

.login-dialog-banner {
color: #d6d6d1; }
Expand Down Expand Up @@ -1758,7 +1777,8 @@ StScrollBar {
text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4); }

.screen-shield-clock-date {
font-size: 28pt; }
font-size: 28pt;
font-weight: normal; }

.screen-shield-notifications-container {
spacing: 6px;
Expand Down Expand Up @@ -1793,10 +1813,8 @@ StScrollBar {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4); }

#lockDialogGroup {
background: #2e3436 url(resource:///org/gnome/shell/theme/background.jpg);
background-size: cover;
background-repeat: none;
}
background: #2e3436 url(resource:///org/gnome/shell/theme/noise-texture.png);
background-repeat: repeat; }

#screenShieldNotifications StButton#vhandle, #screenShieldNotifications StButton#hhandle {
background-color: rgba(57, 63, 63, 0.3); }
Expand Down
Loading