Compare commits

..

3 Commits

Author SHA1 Message Date
nullishamy
23647dfd10 fix: drop casing; absolutely ensure gtk.css and gtk-dark.css are the same 2024-05-28 23:16:46 +01:00
nullishamy
b5eda7aba8 fix: -Dark, not a joke 2024-05-28 15:32:16 +01:00
Hammy
54633c0f72 docs(README): hardcode version in more places (#256)
As we make use of release-please, I feel like it's
nicer to hardcode the versions as they will
automatically get updated upon release.
2024-05-27 23:38:55 +01:00
2 changed files with 5 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ We provide a Python script to automate the process of installing the theme:
<!-- x-release-please-start-version --> <!-- x-release-please-start-version -->
```bash ```bash
curl -LsS "https://raw.githubusercontent.com/catppuccin/gtk/main/install.py" -o install.py curl -LsSO "https://raw.githubusercontent.com/catppuccin/gtk/v1.0.2/install.py"
python3 install.py <flavor> <accent> python3 install.py <flavor> <accent>
[catppuccin-gtk] [INFO] - Installation info: [catppuccin-gtk] [INFO] - Installation info:
flavor: mocha flavor: mocha
@@ -103,7 +103,7 @@ sudo flatpak override --env=GTK_THEME="catppuccin-${FLAVOR}-${ACCENT}-standard+d
### Manual installation ### Manual installation
If your distro does not package our theme, and the installation script will not work for your use case, you can pull down releases and extract them yourself. You can find the [latest release on GitHub](https://github.com/catppuccin/gtk/releases/latest). If your distro does not package our theme, and the installation script will not work for your use case, you can pull down releases and extract them yourself. You can find the [latest release on GitHub](https://github.com/catppuccin/gtk/releases/tag/v1.0.2).
```bash ```bash
cd ~/.local/share/themes cd ~/.local/share/themes

View File

@@ -55,10 +55,7 @@ class BuildContext:
tweaks: Tweaks tweaks: Tweaks
def output_dir(self) -> str: def output_dir(self) -> str:
suffix = "light" return f"{self.build_root}/{self.build_id()}"
if self.flavor.dark:
suffix = "dark"
return f"{self.build_root}/{self.build_id()}-{suffix}"
def build_id(self) -> str: def build_id(self) -> str:
return f"{self.theme_name}-{self.flavor.identifier}-{self.accent.identifier}-{self.size}+{self.tweaks.id() or 'default'}" return f"{self.theme_name}-{self.flavor.identifier}-{self.accent.identifier}-{self.size}+{self.tweaks.id() or 'default'}"
@@ -118,8 +115,7 @@ def build(ctx: BuildContext):
[ [
"sassc", "sassc",
*SASSC_OPT, *SASSC_OPT,
# NOTE: This uses 'Dark' for the source, but 'dark' for the destination. This is intentional. Do !!NOT!! change it without consultation f"{SRC_DIR}/main/gtk-3.0/gtk{ctx.apply_suffix(DARK_LIGHT)}.scss",
f"{SRC_DIR}/main/gtk-3.0/gtk-Dark.scss",
f"{output_dir}/gtk-3.0/gtk-dark.css", f"{output_dir}/gtk-3.0/gtk-dark.css",
] ]
) )
@@ -137,8 +133,7 @@ def build(ctx: BuildContext):
[ [
"sassc", "sassc",
*SASSC_OPT, *SASSC_OPT,
# NOTE: This uses 'Dark' for the source, but 'dark' for the destination. This is intentional. Do !!NOT!! change it without consultation f"{SRC_DIR}/main/gtk-4.0/gtk{ctx.apply_suffix(DARK_LIGHT)}.scss",
f"{SRC_DIR}/main/gtk-4.0/gtk-Dark.scss",
f"{output_dir}/gtk-4.0/gtk-dark.css", f"{output_dir}/gtk-4.0/gtk-dark.css",
] ]
) )