Skip to content
Snippets Groups Projects
Commit 8ee7a109 authored by Maxime Accadia's avatar Maxime Accadia
Browse files

Theme Gnome-Shell / GDM et GTK

parent 6a44e1f3
No related branches found
No related tags found
No related merge requests found
Pipeline #109710 failed
......@@ -2,3 +2,4 @@ jpg
unsplash
design-linux-uga*
notes.md
yaru*
\ No newline at end of file
......@@ -9,11 +9,13 @@ variables:
# See https://docs.gitlab.com/ee/user/packages/generic_packages/#publish-a-package-file
PACKAGE_VERSION: $CI_COMMIT_TAG
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/design-linux-uga"
DEB_FILE: "design-linux-uga.deb"
DESIGN_LINUX_DEB: "design-linux-uga.deb"
YARU_PATCHED_DEB_1: "gnome-shell/yaru-theme-gnome-shell_20.04.11_all.deb"
YARU_PATCHED_DEB_2: "gnome-shell/yaru-theme-gtk_20.04.11_all.deb"
build:
stage: build
image: ubuntu:latest
image: ubuntu:focal
rules:
- if: $CI_COMMIT_TAG
script:
......@@ -21,9 +23,14 @@ build:
- apt-get install -y librsvg2-bin imagemagick make dpkg
- 'sed -i "s/<version>/$CI_COMMIT_TAG/g" debian/control'
- bash mkdeb.sh
- cd gnome-shell
- bash mk_patched_yaru_debs.sh
- cd -
artifacts:
paths:
- $DEB_FILE
- $DESIGN_LINUX_DEB
- $YARU_PATCHED_DEB_1
- $YARU_PATCHED_DEB_2
upload:
stage: upload
......@@ -34,7 +41,9 @@ upload:
- |
ls
echo "Version : $CI_COMMIT_TAG"
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${DEB_FILE} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${DEB_FILE}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${DESIGN_LINUX_DEB} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${DESIGN_LINUX_DEB}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${YARU_PATCHED_DEB_1} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${YARU_PATCHED_DEB_1}
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${YARU_PATCHED_DEB_2} ${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${YARU_PATCHED_DEB_2
release:
......@@ -47,4 +56,6 @@ release:
script:
- |
release-cli create --name "Release $CI_COMMIT_TAG" --tag-name $CI_COMMIT_TAG \
--assets-link "{\"name\":\"${DEB_FILE}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${DEB_FILE}\"}"
--assets-link "{\"name\":\"${DESIGN_LINUX_DEB}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${DESIGN_LINUX_DEB}\"}"
--assets-link "{\"name\":\"${YARU_PATCHED_DEB_1}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${YARU_PATCHED_DEB_1}\"}"
--assets-link "{\"name\":\"${YARU_PATCHED_DEB_2}\",\"url\":\"${PACKAGE_REGISTRY_URL}/${CI_COMMIT_TAG}/${YARU_PATCHED_DEB_2}\"}"
......@@ -5,6 +5,9 @@
Ce dépôt contient des fonds d'écran et des éléments de design Université Grenoble Alpes
pour Linux.
Compatibilité :
* Ubuntu 20.04
## Contenu
* Fonds d'écran et un diaporama pour Gnome
......@@ -14,7 +17,13 @@ pour Linux.
## Utilisation
Un paquet **.deb** est disponible : voir les [releases](https://gricad-gitlab.univ-grenoble-alpes.fr/phitem/design-linux-uga/-/releases).
Des paquets **.deb** est disponible : voir les [releases](https://gricad-gitlab.univ-grenoble-alpes.fr/phitem/design-linux-uga/-/releases).
Si vous utilisez les paquets de thème Yaru, vous devrez les figer pour éviter que les mises à jour Ubuntu les écrasent :
```bash
sudo apt-mark hold yaru*
```
Pour chaque élément de design, voir le README du dossier correspondant.
......
......@@ -20,36 +20,6 @@ dconf update
* Le logo UGA est la propriété de l'Université Grenoble Alpes et ne peut être modifié.
## Modification du thème GDM par patch sur le paquet yaru-theme-gnome-shell
```bash
echo "deb-src http://archive.ubuntu.com/ubuntu focal main restricted
deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted
" | sudo tee /etc/apt/sources.list.d/ubuntu-src.list
sudo apt update
sudo apt install devscripts fakeroot
sudo apt-get build-dep yaru-theme-gnome-shell
apt-get source yaru-theme-gnome-shell # sans sudo !
cd yaru-theme*
[faire modif / applique patch]
dch -i # noter les modifications
dpkg-buildpackage -rfakeroot
sudo apt install ../<paquet>.deb
# sudo systemctl restart gdm3
```
## Modification du thème GDM par modification du fichier gnome-shell-theme.gresource (non implémenté)
Il n'est pas très simple de modifier le thème de GDM. Le thème est définit dans un binaire (par défaut `/usr/share/gnome-shell/gnome-shell-theme.gresource`).
......
# Theme UGA pour Gnome-shell
## Ce que ça fait
* Change le theme Ubuntu (Yaru) aux couleurs de l'UGA
## Utilisation
## Licences
* Le code source est sous licence Apache 2.0.
## Modification du thème GDM par patch sur le paquet yaru-theme-gnome-shell
```bash
echo "deb-src http://archive.ubuntu.com/ubuntu focal main restricted
deb-src http://archive.ubuntu.com/ubuntu focal-updates main restricted
" | sudo tee /etc/apt/sources.list.d/ubuntu-src.list
sudo apt update
sudo apt install devscripts fakeroot
sudo apt-get build-dep yaru-theme-gnome-shell
apt-get source yaru-theme-gnome-shell # sans sudo !
cd yaru-theme*
[faire modif / applique patch]
dch -i # noter les modifications
dpkg-buildpackage -rfakeroot
sudo apt install ../<paquet>.deb
# sudo systemctl restart gdm3
```
#!/usr/bin/env bash
# Dépendances build
sudo apt install -y debhelper dh-migrations libgtk-3-dev git meson sassc
# Dernière version Yaru 20.04
git clone -b '20.04.11' --single-branch --depth 1 https://github.com/ubuntu/yaru.git
# Applique les modifications
## Palette générale
find yaru/ -name "*ubuntu-colors.scss" -exec cp "$SCRIPT_DIR/palette.scss" {} \;
## Fond terminal
sed -i 's/$_terminal_bg_color: #300A24/$_terminal_bg_color: #10152b/' yaru/gtk/src/default/gtk-3.20/_apps.scss
#Building binary debian files
cd yaru
dpkg-buildpackage --build=binary -uc -us -tc
\ No newline at end of file
/* Remplace dans Yaru
./gnome-shell/src/gnome-shell-sass/_ubuntu-colors.scss
./gtk/src/default/gtk-3.0/_ubuntu-colors.scss
./gtk/src/default/gtk-3.20/_ubuntu-colors.scss
./gtk/src/light/gtk-3.0/_ubuntu-colors.scss
./gtk/src/light/gtk-3.20/_ubuntu-colors.scss
./gtk/src/dark/gtk-3.0/_ubuntu-colors.scss
./gtk/src/dark/gtk-3.20/_ubuntu-colors.scss
*/
// Blacks
$jet: #181818;
$inkstone: #3D3D3D;
$slate: #5D5D5D;
$graphite: #666666;
// Whites
$white: #FFFFFF;
$porcelain: #F7F7F7;
$silk: #CCC;
$ash: #878787;
// Purples // Remplacés par des bleus UGA
$aubergine: #4f5784;
$purple: #2a2e46;
$light_aubergine: #3e4467;
$mid_aubergine: #2a2e46;
$dark_aubergine: #2a2e46;
// Reds
$red: #c7162b;
// Oranges // Remplacé par des orange UGA
$orange: #e84e0f;
// Yellows
$yellow: #f99b11;
// Greens
$green: #0e8420;
// Blues
$blue: #19B6EE;
$linkblue: #007aa6;
$darkblue: #335280;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment