Skip to content

Commit 6c2bfcf

Browse files
author
Lains
committed
Merge both theme related repos in one
1 parent 47b0e2e commit 6c2bfcf

9 files changed

+1005
-0
lines changed

LICENSE

+674
Large diffs are not rendered by default.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# tau-themes
2+
3+
A set of GTK Themes for tauOS

adw-gtk3-accent-colours.patch

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
From bf4d2b033afb504fcda61cbc5865bbf27548b051 Mon Sep 17 00:00:00 2001
2+
From: Jamie Lee <[email protected]>
3+
Date: Fri, 8 Apr 2022 16:27:54 -0700
4+
Subject: [PATCH] Add accent colours
5+
6+
---
7+
gtk/src/adw-gtk3/gtk-3.0/_colors.scss | 12 +++++++-----
8+
gtk/src/adw-gtk3/gtk-3.0/_libhandy.scss | 2 +-
9+
gtk/src/adw-gtk3/gtk-3.0/_palette.scss | 9 +++++++++
10+
3 files changed, 17 insertions(+), 6 deletions(-)
11+
12+
diff --git a/gtk/src/adw-gtk3/gtk-3.0/_colors.scss b/gtk/src/adw-gtk3/gtk-3.0/_colors.scss
13+
index 20785b0..0b6b810 100644
14+
--- a/gtk/src/adw-gtk3/gtk-3.0/_colors.scss
15+
+++ b/gtk/src/adw-gtk3/gtk-3.0/_colors.scss
16+
@@ -6,8 +6,9 @@ $text_color: if($variant == 'light', black, white);
17+
$bg_color: if($variant == 'light', #fafafa, #242424);
18+
$fg_color: if($variant == 'light', transparentize(black, .2), white);
19+
20+
-$selected_fg_color: #ffffff;
21+
-$selected_bg_color: if($variant == 'light', $blue_3, $blue_3);
22+
+$selected_fg_color: $accent_fg_color;
23+
+$selected_bg_color: if($variant == 'light', $accent_bg_color, darken($accent_bg_color, 4%));
24+
+
25+
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 15%), darken($selected_bg_color, 30%));
26+
$borders_color: if($variant == 'light', darken($bg_color, 17%), lighten($bg_color, 16.7%)); //#cfcfcf, #4f4f4f
27+
$alt_borders_color: if($variant == 'light', darken($bg_color, 24%), darken($bg_color, 18%));
28+
@@ -70,11 +71,12 @@ $backdrop_menu_color: if($variant == 'light', $backdrop_base_color, mix($backdro
29+
//special cased widget colors
30+
$suggested_bg_color: $selected_bg_color;
31+
$suggested_border_color: $selected_borders_color;
32+
-$progress_bg_color: $selected_bg_color;
33+
+$progress_bg_color: $accent_bg_color;
34+
$progress_border_color: $selected_borders_color;
35+
-$checkradio_bg_color: $selected_bg_color;
36+
-$checkradio_fg_color: $selected_fg_color;
37+
+$checkradio_bg_color: $accent_bg_color;
38+
+$checkradio_fg_color: $accent_fg_color;
39+
$checkradio_borders_color: if($variant == 'light', darken($checkradio_bg_color,20%), darken($checkradio_bg_color,40%));
40+
+$focus_border_color: transparentize(lighten($accent_bg_color, 14%), 0.3);
41+
42+
// titlebuttons
43+
$titlebutton_normal: if($variant == 'light', darken($headerbar_color, 7%), lighten($headerbar_color, 8%));
44+
diff --git a/gtk/src/adw-gtk3/gtk-3.0/_libhandy.scss b/gtk/src/adw-gtk3/gtk-3.0/_libhandy.scss
45+
index 29bf094..438e054 100644
46+
--- a/gtk/src/adw-gtk3/gtk-3.0/_libhandy.scss
47+
+++ b/gtk/src/adw-gtk3/gtk-3.0/_libhandy.scss
48+
@@ -413,7 +413,7 @@ viewswitcher {
49+
50+
> stack > box label {
51+
animation: needs_attention 150ms ease-in;
52+
- background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to($selected_bg_color), to(transparent));
53+
+ background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to($accent_bg_color), to(transparent));
54+
background-size: 6px 6px, 6px 6px;
55+
background-repeat: no-repeat;
56+
background-position: right 0px, right 1px;
57+
diff --git a/gtk/src/adw-gtk3/gtk-3.0/_palette.scss b/gtk/src/adw-gtk3/gtk-3.0/_palette.scss
58+
index 414decf..8da6438 100644
59+
--- a/gtk/src/adw-gtk3/gtk-3.0/_palette.scss
60+
+++ b/gtk/src/adw-gtk3/gtk-3.0/_palette.scss
61+
@@ -43,6 +43,10 @@ $dark_2: #5e5c64;
62+
$dark_3: #3d3846;
63+
$dark_4: #241f31;
64+
$dark_5: #000000;
65+
+$Tau: #8C56BF;
66+
+$accent_color: $Tau;
67+
+$accent_bg_color: $Tau;
68+
+$accent_fg_color: $light_1;
69+
70+
// Sass thinks we're using the colors in the variables as strings and may shoot
71+
// warning, it's innocuous and can be defeated by using #{$var}.
72+
@@ -93,3 +97,8 @@ $dark_5: #000000;
73+
@define-color dark_4 #{$dark_4};
74+
@define-color dark_5 #{$dark_5};
75+
76+
+@define-color Tau #{$Tau};
77+
+@define-color accent_color #{$Tau};
78+
+@define-color accent_bg_color #{$Tau};
79+
+@define-color accent_fg_color #{$light_1};
80+
+
81+
--
82+
2.35.1
83+

flatpak/adw-gtk3-accent-colours.patch

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../adw-gtk3-accent-colours.patch
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="runtime">
3+
<id>org.gtk.Gtk3theme.adw-gtk3-dark</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<name>adw-gtk3-dark Gtk Theme</name>
6+
<summary>The theme from libadwaita ported to GTK-3</summary>
7+
<description>
8+
<p>The theme from libadwaita ported to GTK-3</p>
9+
</description>
10+
<url type="homepage">https://github.com/lassekongo83/adw-gtk3</url>
11+
</component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
id: org.gtk.Gtk3theme.adw-gtk3-dark
2+
branch: '3.22'
3+
runtime: org.freedesktop.Platform
4+
runtime-version: '21.08'
5+
sdk: org.freedesktop.Sdk
6+
7+
build-extension: true
8+
appstream-compose: false
9+
separate-locales: false
10+
build-options:
11+
prefix: '/usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0'
12+
13+
modules:
14+
- name: adw-gtk3-dark
15+
buildsystem: simple
16+
build-options:
17+
prefix: "/usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0"
18+
build-commands:
19+
- rm -r /usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0/share/themes/adw-gtk3
20+
modules:
21+
- name: adw-gtk3-git
22+
buildsystem: meson
23+
build-options:
24+
prefix: "/usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0"
25+
append-path: "/usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0/bin"
26+
sources:
27+
- type: git
28+
url: https://github.com/lassekongo83/adw-gtk3.git
29+
tag: v1.7
30+
- type: patch
31+
path: adw-gtk3-accent-colours.patch
32+
options:
33+
- "-p0"
34+
modules:
35+
- name: sassc
36+
cleanup:
37+
- "*"
38+
config-opts: ["--with-libsass=/usr/share/runtime/share/themes/adw-gtk3-dark/gtk-3.0"]
39+
sources:
40+
- type: git
41+
url: https://github.com/sass/sassc.git
42+
tag: 3.6.1
43+
commit: 46748216ba0b60545e814c07846ca10c9fefc5b6
44+
- type: script
45+
dest-filename: autogen.sh
46+
commands:
47+
- autoreconf -si
48+
modules:
49+
- name: libsass
50+
cleanup:
51+
- "*"
52+
sources:
53+
- type: git
54+
url: https://github.com/sass/libsass.git
55+
tag: 3.6.4
56+
commit: 8d312a1c91bb7dd22883ebdfc829003f75a82396
57+
- type: script
58+
dest-filename: autogen.sh
59+
commands:
60+
- autoreconf -si
61+
62+
- name: appdata
63+
buildsystem: simple
64+
build-commands:
65+
- install -Dm644 org.gtk.Gtk3theme.adw-gtk3-dark.appdata.xml -t ${FLATPAK_DEST}/share/appdata
66+
- appstream-compose --basename=org.gtk.Gtk3theme.adw-gtk3-dark --prefix=${FLATPAK_DEST} --origin=flatpak org.gtk.Gtk3theme.adw-gtk3-dark
67+
sources:
68+
- type: file
69+
path: org.gtk.Gtk3theme.adw-gtk3-dark.appdata.xml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="runtime">
3+
<id>org.gtk.Gtk3theme.adw-gtk3</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<name>adw-gtk3 Gtk Theme</name>
6+
<summary>The theme from libadwaita ported to GTK-3</summary>
7+
<description>
8+
<p>The theme from libadwaita ported to GTK-3</p>
9+
</description>
10+
<url type="homepage">https://github.com/lassekongo83/adw-gtk3</url>
11+
</component>
+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
id: org.gtk.Gtk3theme.adw-gtk3
2+
branch: '3.22'
3+
runtime: org.freedesktop.Platform
4+
runtime-version: '21.08'
5+
sdk: org.freedesktop.Sdk
6+
7+
build-extension: true
8+
appstream-compose: false
9+
separate-locales: false
10+
build-options:
11+
prefix: '/usr/share/runtime/share/themes/adw-gtk3/gtk-3.0'
12+
13+
modules:
14+
- name: adw-gtk3
15+
buildsystem: simple
16+
build-options:
17+
prefix: "/usr/share/runtime/share/themes/adw-gtk3/gtk-3.0"
18+
build-commands:
19+
- rm /usr/share/runtime/share/themes/adw-gtk3/gtk-3.0/share/themes/adw-gtk3/gtk-3.0/gtk-dark.css
20+
- rm -r /usr/share/runtime/share/themes/adw-gtk3/gtk-3.0/share/themes/adw-gtk3-dark
21+
modules:
22+
- name: adw-gtk3-git
23+
buildsystem: meson
24+
build-options:
25+
prefix: "/usr/share/runtime/share/themes/adw-gtk3/gtk-3.0"
26+
append-path: "/usr/share/runtime/share/themes/adw-gtk3/gtk-3.0/bin"
27+
sources:
28+
- type: git
29+
url: https://github.com/lassekongo83/adw-gtk3.git
30+
tag: v1.7
31+
- type: patch
32+
path: adw-gtk3-accent-colours.patch
33+
options:
34+
- "-p0"
35+
modules:
36+
- name: sassc
37+
cleanup:
38+
- "*"
39+
config-opts: ["--with-libsass=/usr/share/runtime/share/themes/adw-gtk3/gtk-3.0"]
40+
sources:
41+
- type: git
42+
url: https://github.com/sass/sassc.git
43+
tag: 3.6.1
44+
commit: 46748216ba0b60545e814c07846ca10c9fefc5b6
45+
- type: script
46+
dest-filename: autogen.sh
47+
commands:
48+
- autoreconf -si
49+
modules:
50+
- name: libsass
51+
cleanup:
52+
- "*"
53+
sources:
54+
- type: git
55+
url: https://github.com/sass/libsass.git
56+
tag: 3.6.4
57+
commit: 8d312a1c91bb7dd22883ebdfc829003f75a82396
58+
- type: script
59+
dest-filename: autogen.sh
60+
commands:
61+
- autoreconf -si
62+
63+
- name: appdata
64+
buildsystem: simple
65+
build-commands:
66+
- install -Dm644 org.gtk.Gtk3theme.adw-gtk3.appdata.xml -t ${FLATPAK_DEST}/share/appdata
67+
- appstream-compose --basename=org.gtk.Gtk3theme.adw-gtk3 --prefix=${FLATPAK_DEST} --origin=flatpak org.gtk.Gtk3theme.adw-gtk3
68+
sources:
69+
- type: file
70+
path: org.gtk.Gtk3theme.adw-gtk3.appdata.xml

tau-themes.spec

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
%define adw_version 1.7
2+
3+
Summary: tauOS GTK Themes
4+
Name: tau-themes
5+
Version: 1.1
6+
Release: 1.7
7+
License: GPLv3
8+
URL: https://tauos.co
9+
Source0: README.md
10+
Source1: LICENSE
11+
Source2: https://github.com/lassekongo83/adw-gtk3/archive/refs/tags/v%adw_version.tar.gz
12+
Patch0: adw-gtk3-accent-colours.patch
13+
BuildArch: noarch
14+
BuildRequires: sassc
15+
BuildRequires: meson
16+
BuildRequires: ninja-build
17+
18+
Requires: tau-themes-adw
19+
Requires: tau-themes-helium
20+
21+
%description
22+
A set of GTK Themes for tauOS
23+
24+
%package adw
25+
Summary: The theme from libadwaita ported to GTK-3
26+
Provides: adw-gtk3
27+
Provides: adw-gtk3-git
28+
Conflicts: adw-gtk3
29+
Conflicts: adw-gtk3-git
30+
31+
%description adw
32+
The theme from libadwaita ported to GTK-3
33+
34+
%package helium
35+
Summary: The theme for tauOS
36+
37+
%description helium
38+
The theme for tauOS
39+
40+
%prep
41+
%setup -c -T -D -q -a 2
42+
cd adw-gtk3-%adw_version
43+
%patch0 -p1
44+
45+
%build
46+
cd adw-gtk3-%adw_version
47+
%meson
48+
%meson_build
49+
50+
%install
51+
52+
# Install licenses
53+
mkdir -p licenses
54+
install -pm 0644 %SOURCE1 licenses/LICENSE
55+
install -pm 0644 %SOURCE0 README.md
56+
cd adw-gtk3-%adw_version
57+
%meson_install
58+
59+
%files
60+
%license licenses/LICENSE
61+
%doc README.md
62+
63+
%files adw
64+
%{_datadir}/themes/adw-gtk3/*
65+
%{_datadir}/themes/adw-gtk3-dark/*
66+
67+
%files helium
68+
%{_datadir}/Helium
69+
%{_datadir}/Helium-dark
70+
71+
%changelog
72+
* Tue May 3 2022 Lains <[email protected]> - 1.1-1.7
73+
- Get Helium GNOME Shell theme here
74+
75+
* Thu Apr 21 2022 Jamie Murphy <[email protected]> - 1.1-1.7
76+
- Update adw-gtk3 to v1.7
77+
- Update Build System
78+
79+
* Thu Apr 7 2022 Jamie Murphy <[email protected]> - 1.1-2
80+
- Add accent colours
81+
82+
* Thu Apr 7 2022 Jamie Murphy <[email protected]> - 1.1-1
83+
- Initial Release

0 commit comments

Comments
 (0)