[Gtk-Theme] First setup

This commit is contained in:
2025-04-25 08:52:52 +02:00
parent aba9e0f30a
commit 722be458ec
5 changed files with 244 additions and 14 deletions

View File

@@ -0,0 +1,100 @@
/*
* ╭───────────────────────────────────────────────╮
* │ GTK NAMED COLORS │
* ╰───────────────────────────────────────────────╯
*/
/*
* ── widget text/foreground color ─────────────────────────────────────
*/
@define-color theme_fg_color {{ colour-foreground-hex }};
/*
* ── text color for entries, views and content in general ─────────────
*/
@define-color theme_text_color {{ colour-foreground-hex }};
/*
* ── widget base background color ─────────────────────────────────────
*/
@define-color theme_bg_color {{ colour-background-hex }};
/*
* ── text widgets and the like base background color ──────────────────
*/
@define-color theme_base_color {{ colour-background-alternative-hex }};
/*
* ── base background color of selections ──────────────────────────────
*/
@define-color theme_selected_bg_color {{ colour-accent-hex }};
/*
* ── text/foreground color of selections ──────────────────────────────
*/
@define-color theme_selected_fg_color {{ colour-foreground-hex }};
/*
* ── base background color of insensitive widgets ─────────────────────
*/
@define-color insensitive_bg_color {{ colour-background-hex }};
/*
* ── text foreground color of insensitive widgets ─────────────────────
*/
@define-color insensitive_fg_color {{ colour-foreground-rgba }};
/*
* ── insensitive text widgets and the like base background color ──────
*/
@define-color insensitive_base_color {{ colour-background-alternative-hex }};
/*
* ── widget text/foreground color on backdrop windows ─────────────────
*/
@define-color theme_unfocused_fg_color {{ colour-accent-2-hex }};
/*
text color for entries, views and content in general on backdrop windows */
@define-color theme_unfocused_text_color {{ colour-inactive-hex }};
/*
widget base background color on backdrop windows */
@define-color theme_unfocused_bg_color {{ colour-inactive-background-hex }};
/*
text widgets and the like base background color on backdrop windows */
@define-color theme_unfocused_base_color {{ colour-inactive-background-hex }};
/*
base background color of selections on backdrop windows */
@define-color theme_unfocused_selected_bg_color {{ colour-accent-2-hex }};
/*
text/foreground color of selections on backdrop windows */
@define-color theme_unfocused_selected_fg_color {{ colour-foreground-hex }};
/*
insensitive color on backdrop windows */
@define-color unfocused_insensitive_color {{ colour-foreground-rgba }};
/*
widgets main borders color */
@define-color borders {{ colour-shadow-rgba }};
/*
widgets main borders color on backdrop windows */
@define-color unfocused_borders {{ colour-shadow-rgba }};
/*
these are pretty self explicative */
@define-color warning_color #ffeb3b;
@define-color error_color #f44336;
@define-color success_color #00e676;
/* content view background such as thumbnails view in Photos or Boxes */
@define-color content_view_bg {{ colour-background-hex }};
/* Very contrasty background for text views (@theme_text_color foreground) */
@define-color text_view_bg {{ colour-background-hex }};
/* placeholder for entries */
@define-color placeholder_text_color {{ colour-inactive-hex }};

View File

@@ -0,0 +1,100 @@
/*
* ╭───────────────────────────────────────────────╮
* │ GTK NAMED COLORS │
* ╰───────────────────────────────────────────────╯
*/
/*
* ── widget text/foreground color ─────────────────────────────────────
*/
@define-color theme_fg_color {{ colour-foreground-hex }};
/*
* ── text color for entries, views and content in general ─────────────
*/
@define-color theme_text_color {{ colour-foreground-hex }};
/*
* ── widget base background color ─────────────────────────────────────
*/
@define-color theme_bg_color {{ colour-background-hex }};
/*
* ── text widgets and the like base background color ──────────────────
*/
@define-color theme_base_color {{ colour-background-alternative-hex }};
/*
* ── base background color of selections ──────────────────────────────
*/
@define-color theme_selected_bg_color {{ colour-accent-hex }};
/*
* ── text/foreground color of selections ──────────────────────────────
*/
@define-color theme_selected_fg_color {{ colour-foreground-hex }};
/*
* ── base background color of insensitive widgets ─────────────────────
*/
@define-color insensitive_bg_color {{ colour-background-hex }};
/*
* ── text foreground color of insensitive widgets ─────────────────────
*/
@define-color insensitive_fg_color {{ colour-foreground-rgba }};
/*
* ── insensitive text widgets and the like base background color ──────
*/
@define-color insensitive_base_color {{ colour-background-alternative-hex }};
/*
* ── widget text/foreground color on backdrop windows ─────────────────
*/
@define-color theme_unfocused_fg_color {{ colour-accent-2-hex }};
/*
text color for entries, views and content in general on backdrop windows */
@define-color theme_unfocused_text_color {{ colour-inactive-hex }};
/*
widget base background color on backdrop windows */
@define-color theme_unfocused_bg_color {{ colour-inactive-background-hex }};
/*
text widgets and the like base background color on backdrop windows */
@define-color theme_unfocused_base_color {{ colour-inactive-background-hex }};
/*
base background color of selections on backdrop windows */
@define-color theme_unfocused_selected_bg_color {{ colour-accent-2-hex }};
/*
text/foreground color of selections on backdrop windows */
@define-color theme_unfocused_selected_fg_color {{ colour-foreground-hex }};
/*
insensitive color on backdrop windows */
@define-color unfocused_insensitive_color {{ colour-foreground-rgba }};
/*
widgets main borders color */
@define-color borders {{ colour-shadow-rgba }};
/*
widgets main borders color on backdrop windows */
@define-color unfocused_borders {{ colour-shadow-rgba }};
/*
these are pretty self explicative */
@define-color warning_color #ffeb3b;
@define-color error_color #f44336;
@define-color success_color #00e676;
/* content view background such as thumbnails view in Photos or Boxes */
@define-color content_view_bg {{ colour-background-hex }};
/* Very contrasty background for text views (@theme_text_color foreground) */
@define-color text_view_bg {{ colour-background-hex }};
/* placeholder for entries */
@define-color placeholder_text_color {{ colour-inactive-hex }};

View File

@@ -0,0 +1,8 @@
[Desktop Entry]
Type=X-GNOME-Metatheme
Name=Adaptive-Theme
Comment=A very adaptive theme together with its scripts
Encoding=UTF-8
[X-GNOME-Metatheme]
GtkTheme=Adaptive-Theme