WhiteSur-gtk-theme/README.md

372 lines
12 KiB
Markdown
Raw Normal View History

2021-04-08 02:09:27 +02:00
<h1 align="center"> WhiteSur GTK Theme </h1>
2021-06-16 13:57:29 +02:00
<p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/macbook.png"/> </p>
2020-07-14 18:35:03 +02:00
2021-04-08 02:09:27 +02:00
<br>
2021-04-08 02:53:50 +02:00
<p align="center"> <b> A macOS BigSur-like theme for your GTK apps </b> </p>
2021-04-08 02:09:27 +02:00
<br>
2020-07-14 18:35:03 +02:00
2023-03-13 09:14:04 +01:00
## Donate
If you like my project, you can buy me a coffee:
<span class="paypal"><a href="https://www.paypal.me/vinceliuice" title="Donate to this project using Paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png" alt="PayPal donate button" /></a></span>
2021-04-08 02:09:27 +02:00
# Installation is easy!
2022-10-27 13:59:56 +02:00
<details> <summary> Required dependencies <b>(click to open)</b> </summary>
2020-07-14 18:35:03 +02:00
2021-06-08 16:03:41 +02:00
### "Install from source" deps
2021-04-10 09:35:40 +02:00
- sassc
2021-04-10 09:26:38 +02:00
- libglib2.0-dev-bin `ubuntu 20.04`
- libglib2.0-dev `ubuntu 18.04` `debian 10.03` `linux mint 19`
- libxml2-utils `ubuntu 18.04` `debian 10.03` `linux mint 19`
- glib2-devel `Fedora` `Redhat`
2020-07-14 18:35:03 +02:00
### Misc deps
- imagemagick `(optional for GDM theme tweak)`
2021-04-10 09:35:40 +02:00
- dialog `(optional for installation in dialog mode)`
- optipng `(optional for asset rendering)`
- inkscape `(optional for asset rendering)`
2021-04-08 02:09:27 +02:00
Don't worry, WhiteSur installer already provides all of those dependencies.
</details>
2020-07-14 18:35:03 +02:00
2022-10-27 13:59:56 +02:00
<details> <summary> Recommended GNOME Shell extensions <b>(click to open)</b> </summary>
2021-04-29 05:50:55 +02:00
- [user-themes](https://extensions.gnome.org/extension/19/user-themes/) to enable gnome-shell theme (and not just the application theme)
2022-10-19 14:51:09 +02:00
- [dash-to-dock](https://extensions.gnome.org/extension/307/dash-to-dock)
2021-04-29 05:50:55 +02:00
- [blur-my-shell](https://extensions.gnome.org/extension/3193/blur-my-shell)
</details>
2021-04-08 02:09:27 +02:00
## Quick install
2021-04-10 09:09:46 +02:00
2021-06-07 13:31:45 +02:00
### Installing from source
2022-10-19 12:12:59 +02:00
2023-06-11 04:43:51 +02:00
1. Run `git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git --depth=1`
2. Run `./install.sh` to install the default WhiteSur GTK theme pack.
2021-01-16 05:53:17 +01:00
2022-10-19 14:34:50 +02:00
### Uninstall
2021-11-04 03:17:20 +01:00
2022-10-27 13:59:56 +02:00
<details> <summary> For example: <b>(click to open)</b> </summary>
2022-10-19 12:11:28 +02:00
2021-11-04 03:17:20 +01:00
- uninstall Gtk themes: `./install.sh -r`
- uninstall GDM theme: `sudo ./tweaks.sh -g -r`
- uninstall Firefox theme: `./tweaks.sh -f -r`
- uninstall Dash-to-dock theme: `./tweaks.sh -d -r`
- uninstall Flatpak Gtk themes: `./tweaks.sh -F -r`
- uninstall Snap Gtk themes: `./tweaks.sh -s -r`
2022-10-19 12:11:28 +02:00
</details>
2021-04-08 02:09:27 +02:00
## There's so many customizations you can do!
Usage: `./install.sh [OPTIONS...]`
2020-12-26 10:50:59 +01:00
2022-10-27 13:59:56 +02:00
<details> <summary> Options <b>(click to open)</b> </summary>
2021-05-09 08:25:44 +02:00
```bash
2022-10-27 13:54:57 +02:00
-d, --dest DIR
Set destination directory. Default is '/home/vince/.themes'
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-n, --name NAME
Set theme name. Default is 'WhiteSur'
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-o, --opacity [normal|solid]
Set theme opacity variants. Repeatable. Default is all variants
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-c, --color [Light|Dark]
Set theme color variants. Repeatable. Default is all variants
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-a, --alt [normal|alt|all]
Set window control buttons variant. Repeatable. Default is 'normal'
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-t, --theme [default|blue|purple|pink|red|orange|yellow|green|grey|all]
Set theme accent color. Repeatable. Default is BigSur-like theme
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-p, --panel-opacity [default|30|45|60|75]
Set panel transparency. Default is 15%
2021-08-21 05:41:37 +02:00
2022-10-27 13:54:57 +02:00
-P, --panel-size [default|smaller|bigger]
Set Gnome shell panel height size. Default is 32px
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-s, --size [default|180|220|240|260|280]
Set Nautilus sidebar minimum width. Default is 200px
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-i, --icon [standard|simple|gnome|ubuntu|tux|arch|manjaro|fedora|debian|void|opensuse|popos|mxlinux|zorin]
Set 'Activities' icon. Default is 'standard'
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-b, --background [default|blank|IMAGE_PATH]
Set gnome-shell background image. Default is BigSur-like wallpaper
2021-05-09 08:25:44 +02:00
2022-11-12 15:42:26 +01:00
-m, --monterey
Set to MacOS Monterey style.
2021-05-09 08:25:44 +02:00
2022-10-27 13:54:57 +02:00
-N, --nautilus-style [stable|normal|mojave|glassy]
Set Nautilus style. Default is BigSur-like style (stabled sidebar)
2021-05-09 08:25:44 +02:00
2022-11-12 15:42:26 +01:00
-l, --libadwaita
2022-10-27 13:54:57 +02:00
Install theme into gtk4.0 config for libadwaita. Default is dark version
2021-05-09 08:25:44 +02:00
2022-11-12 15:42:26 +01:00
-HD, --highdefinition
2022-10-27 13:54:57 +02:00
Set to High Definition size. Default is laptop size
2021-05-09 08:25:44 +02:00
2022-11-12 15:42:26 +01:00
--normal, --normalshowapps
2022-10-27 13:54:57 +02:00
Set gnome-shell show apps button style to normal. Default is bigsur
2021-05-09 08:25:44 +02:00
2022-11-12 15:42:26 +01:00
--round, --roundedmaxwindow
2022-10-27 13:54:57 +02:00
Set maximized window to rounded. Default is square
2021-07-19 16:24:56 +02:00
2022-11-12 15:42:26 +01:00
--right, --rightplacement
2022-10-27 13:54:57 +02:00
Set Nautilus titlebutton placement to right. Default is left
2022-05-05 11:53:22 +02:00
2022-11-12 15:42:26 +01:00
--black, --blackfont
2022-10-27 13:54:57 +02:00
Set panel font color to black. Default is white
2021-07-19 16:24:56 +02:00
2022-11-12 15:42:26 +01:00
--darker, --darkercolor
Install darker 'WhiteSur' dark themes.
2021-07-19 16:24:56 +02:00
2022-11-12 15:42:26 +01:00
--nord, --nordcolor
Install 'WhiteSur' Nord ColorScheme themes.
2021-07-19 16:24:56 +02:00
2022-11-12 15:42:26 +01:00
--dialog, --interactive
Run this installer interactively, with dialogs.
2022-10-27 13:54:57 +02:00
2022-11-12 15:42:26 +01:00
--silent-mode
Meant for developers: ignore any confirm prompt and params become more strict.
2022-10-27 13:54:57 +02:00
2022-11-12 15:42:26 +01:00
-r, --remove, -u, --uninstall
Remove all installed WhiteSur themes.
2022-10-27 13:54:57 +02:00
2022-11-12 15:42:26 +01:00
-h, --help
Show this help.
2021-12-26 15:16:39 +01:00
2021-05-09 08:25:44 +02:00
```
</details>
2022-10-27 13:44:13 +02:00
### Fix for libadwaita (not perfect)
2022-10-27 13:59:56 +02:00
<details> <summary> Details <b>(click to open)</b> </summary>
2022-10-27 13:47:18 +02:00
2022-10-27 13:44:13 +02:00
Since the release of `Gnome 43.0`, more and more built-in apps use `libadwaita` now, and libadwaita does not support custom themes, which means we cannot change the appearance of app using libadwaita through `gnome-tweaks` or `dconf-editor`. For users who love custom themes, its really sucks!
Anyway if anybody who still want to custom themes we can only do this way:
that is to use the `theme file` to overwrite the `gtk-4.0 configuration file`. The result is that only Fixed making all gtk4 apps use one theme and cannot be switched (even can not switch to dark mode) If you want to change a theme, you can only re-overwrite the `gtk-4.0 configuration file` with a new theme, I know this method is not perfect, But at the moment it is only possible to continue using themes for libadwaita's apps ...
2022-10-27 13:47:18 +02:00
</details>
Run this command to install `WhiteSur` into `gtk-4.0 configuration folder` ($HOME/.config/gtk-4.0)
2022-10-27 13:44:13 +02:00
```bash
./install.sh -l # Default is the normal dark theme
./install.sh -l -c Light # install light theme for libadwaita
```
2022-12-07 15:06:48 +01:00
### Connect WhiteSur theme to Flatpak (Snap not support)
2022-11-12 15:42:26 +01:00
Parameter: `--flatpak` `-F`
Example: `./tweaks.sh -F`
Fix for Flatpak gtk-4.0 app:
```bash
sudo flatpak override --filesystem=xdg-config/gtk-4.0
```
2021-04-08 02:53:50 +02:00
### <p align="center"> <b> Change theme color and accent </b> </p>
2021-06-16 13:57:29 +02:00
<p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/colors-themes.png"/> </p>
2020-07-31 11:33:11 +02:00
2021-04-08 02:09:27 +02:00
#### Install theme color
Parameter: `--color` `-c` (repeatable)
2020-12-26 10:50:59 +01:00
2021-04-08 02:09:27 +02:00
Example:
2020-12-26 10:50:59 +01:00
2020-12-26 16:56:11 +01:00
```bash
2022-07-04 19:03:41 +02:00
./install.sh -c Light # install light theme color only
./install.sh -c Dark -c Light # install dark and light theme colors
2020-12-26 16:56:11 +01:00
```
2020-12-07 07:44:28 +01:00
2021-04-08 02:09:27 +02:00
#### Install theme accent
Parameter: `--theme` `-t` (repeatable)
Example:
2020-12-07 07:44:28 +01:00
2021-01-23 09:12:24 +01:00
```bash
2021-04-08 02:09:27 +02:00
./install.sh -t red # install red theme accent only
./install.sh -t red -t green # install red and green theme accents
./install.sh -t all # install all available theme accents
2021-01-23 09:12:24 +01:00
```
2021-04-08 02:53:50 +02:00
### <p align="center"> <b> Change Nautilus style </b> </p>
2021-06-16 13:57:29 +02:00
<p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/nautilus.png"/> </p>
2021-04-08 02:09:27 +02:00
Parameter: `--nautilus-style` `-N`
Example: `./install.sh -N mojave`
2021-04-08 02:53:50 +02:00
### <p align="center"> <b> Explore more customization features! </b> </p>
2021-04-08 02:09:27 +02:00
You can run `./install.sh -h` to explore more customization features we have
like changing panel opacity, theme opacity (normal and solid variant), window
control button variant, etc.
# Let's tweak!
Usage: `./tweaks.sh [OPTIONS...]`
2022-10-27 13:59:56 +02:00
<details> <summary> Options <b>(click to open)</b> </summary>
2021-05-24 07:18:19 +02:00
```bash
2022-01-29 11:36:27 +01:00
2022-10-27 13:54:57 +02:00
-g, --gdm [default|x2]
Install 'WhiteSur' theme for GDM (scaling: 100%/200%, default is 100%). Requires to run this shell as root
-o, --opacity [normal|solid]
Set 'WhiteSur' GDM theme opacity variants. Default is 'normal'
-c, --color [Light|Dark]
Set 'WhiteSur' GDM and Dash to Dock theme color variants. Default is 'light'
2022-01-29 11:36:27 +01:00
2022-10-27 13:54:57 +02:00
-t, --theme [default|blue|purple|pink|red|orange|yellow|green|grey]
Set 'WhiteSur' GDM theme accent color. Default is BigSur-like theme
2022-01-29 11:36:27 +01:00
2022-11-12 15:42:26 +01:00
-N, --no-darken
Don't darken 'WhiteSur' GDM theme background image.
2022-01-29 11:36:27 +01:00
2022-11-12 15:42:26 +01:00
-n, --no-blur
Don't blur 'WhiteSur' GDM theme background image.
2022-01-29 11:36:27 +01:00
2022-10-27 13:54:57 +02:00
-b, --background [default|blank|IMAGE_PATH]
Set 'WhiteSur' GDM theme background image. Default is BigSur-like wallpaper
2022-10-19 07:13:06 +02:00
2022-10-27 13:54:57 +02:00
-p, --panel-opacity [default|30|45|60|75]
Set 'WhiteSur' GDM (GNOME Shell) theme panel transparency. Default is 15%
2021-05-24 07:18:19 +02:00
2022-10-27 13:54:57 +02:00
-P, --panel-size [default|smaller|bigger]
Set 'WhiteSur' Gnome shell panel height size. Default is 32px
2021-05-24 07:18:19 +02:00
2022-10-27 13:54:57 +02:00
-i, --icon [standard|simple|gnome|ubuntu|tux|arch|manjaro|fedora|debian|void|opensuse|popos|mxlinux|zorin]
Set 'WhiteSur' GDM (GNOME Shell) 'Activities' icon. Default is 'standard'
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
--nord, --nordcolor
Install 'WhiteSur' Nord ColorScheme themes.
2021-05-24 07:18:19 +02:00
2022-10-27 13:54:57 +02:00
-f, --firefox [default|monterey|alt]
Install 'WhiteSur|Monterey|Alt' theme for Firefox and connect it to the current Firefox profiles. Default is WhiteSur
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
-e, --edit-firefox
Edit 'WhiteSur' theme for Firefox settings and also connect the theme to the current Firefox profiles.
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
-F, --flatpak
Connect 'WhiteSur' theme to Flatpak.
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
-d, --dash-to-dock
Fixed Dash to Dock theme issue.
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
-r, --remove, --revert
Revert to the original themes, do the opposite things of install and connect.
2021-08-21 05:41:37 +02:00
2022-11-12 15:42:26 +01:00
--silent-mode
Meant for developers: ignore any confirm prompt and params become more strict.
2021-05-24 07:18:19 +02:00
2022-11-12 15:42:26 +01:00
-h, --help
Show this help.
2021-05-24 07:18:19 +02:00
```
2021-05-24 07:20:26 +02:00
</details>
2021-04-08 02:09:27 +02:00
## There's more themes you can try!
2021-04-08 02:53:50 +02:00
### <p align="center"> <b> Install and edit Firefox theme </b> </p>
2021-11-03 09:49:25 +01:00
2021-06-23 06:50:40 +02:00
<p align="center"> <a href="src/other/firefox">
2022-10-19 14:32:52 +02:00
<img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/firefox.png"/>
2021-06-23 06:50:40 +02:00
</a> </p>
2021-04-08 02:09:27 +02:00
2021-11-28 05:58:44 +01:00
#### [Install Firefox theme](src/other/firefox)
2021-04-08 02:09:27 +02:00
Parameter: `--firefox` `-f`
Example: `./tweaks.sh -f`
#### Edit Firefox theme
Parameter: `--edit-firefox` `-e`
Example:
2020-12-26 16:56:11 +01:00
```bash
2022-10-19 14:32:52 +02:00
./tweaks.sh -e # edit the installed Firefox theme
./tweaks.sh -f -r # remove installed Firefox theme
2021-07-04 17:20:05 +02:00
./tweaks.sh -f monterey # install Monterey Firefox theme
```
2021-04-08 02:53:50 +02:00
### <p align="center"> <b> Install and customize GDM theme </b> </p>
2021-06-16 13:57:29 +02:00
<p align="center"> <img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/gdm.png"/> </p>
2021-04-08 02:09:27 +02:00
#### Install GDM theme
Parameter: `--gdm` `-g` (requires to be run as root)
2021-04-08 02:09:27 +02:00
Example: `sudo ./tweaks.sh -g`
#### Change the background
Parameter: `--background` `-b`
2021-04-10 09:23:57 +02:00
Example:
2021-04-08 02:09:27 +02:00
2020-12-26 16:56:11 +01:00
```bash
2021-04-08 02:09:27 +02:00
sudo ./tweaks.sh -g -b "my picture.jpg" # use the custom background
sudo ./tweaks.sh -g -b default # use the default background
sudo ./tweaks.sh -g -b blank # make it blank
```
2021-04-08 02:09:27 +02:00
#### Don't darken the background
Parameter: `--no-darken` `-N`
2021-04-08 02:09:27 +02:00
2021-04-10 09:23:57 +02:00
Example:
2021-04-08 02:09:27 +02:00
2020-12-26 16:56:11 +01:00
```bash
2021-05-24 07:18:19 +02:00
sudo ./tweaks.sh -g -N # darken the default background
sudo ./tweaks.sh -g -N -b "wallpapers/snow.jpg" # darken the custom background
```
2021-04-08 02:09:27 +02:00
#### Don't blur the background
Parameter: `--no-blur` `-n`
2021-04-10 09:23:57 +02:00
Example:
2021-04-08 02:09:27 +02:00
2020-12-26 16:56:11 +01:00
```bash
2021-04-08 02:09:27 +02:00
sudo ./tweaks.sh -g -n # don't blur the default background
sudo ./tweaks.sh -g -n -b "wallpapers/rocks.jpg" # don't blur the custom background
```
2021-04-08 02:09:27 +02:00
#### Do more GDM customizations
2021-04-08 05:33:30 +02:00
You can do [the similar customization features in `./install.sh`](#theres-so-many-customizations-you-can-do)
like changing theme color (dark and light variant) and accent, GNOME Shell
'Activities' icon, etc. related to GDM. Run `./tweaks.sh -h` to explore!
2021-04-08 02:09:27 +02:00
## Other recommended stuff
2022-10-19 14:34:50 +02:00
### WhiteSur Icon Theme
2021-04-08 02:09:27 +02:00
<p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-icon-theme">
2022-10-19 14:36:26 +02:00
<img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/icon-theme.png"/>
2021-04-08 02:53:50 +02:00
</a> </p>
2021-04-08 03:35:56 +02:00
<br>
2021-04-08 02:53:50 +02:00
<p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-icon-theme">
2021-06-25 07:12:26 +02:00
<img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/download-button.svg"/>
2021-04-08 02:09:27 +02:00
</a> </p>
2021-04-08 03:35:56 +02:00
<br>
2021-04-08 02:09:27 +02:00
2022-10-19 14:34:50 +02:00
### WhiteSur Wallpapers
2022-01-18 05:04:39 +01:00
<p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-wallpapers">
2022-10-19 14:32:52 +02:00
<img class="image" src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/wallpaper.gif"/>
2021-06-23 04:38:41 +02:00
</a> </p>
<br>
2022-01-18 05:04:39 +01:00
<p align="center"> <a href="https://github.com/vinceliuice/WhiteSur-wallpapers">
2021-06-25 07:12:26 +02:00
<img src="https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/pictures/pictures/download-button.svg"/>
2021-04-08 02:09:27 +02:00
</a> </p>
2021-06-23 07:35:16 +02:00
<br>
2021-04-08 02:53:50 +02:00
2022-10-19 14:34:50 +02:00
## Technical details and getting involved
2021-06-09 16:15:05 +02:00
Please go read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for more info