Skip to content

Improve GTK3 list contrast in the adw-gtk3 theme - #14

Closed
tnmt wants to merge 1 commit into
mainfrom
DANDORI-106-adw-gtk3-contrast
Closed

tnmt wants to merge 1 commit into
mainfrom
DANDORI-106-adw-gtk3-contrast

Conversation

@tnmt

@tnmt tnmt commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

概要

PR #13 の adw-gtk3 は、Thunar のようなリストで読みにくい箇所があった。

  • 選択行の文字が、accent の背景(#769df0)に対して明るい文字色のままで、コントラスト比が約1.9:1
  • 列見出し(Name / Size / Type / Date Modified)が約2.6〜3:1

pkgs.adw-gtk3 の postInstall でテーマの gtk.css に補正を追記した。選択行の文字は @accent_fg_color(noctalia の #1a1b26)、列見出しは本文色に寄せる。

配置先の理由

~/.config/gtk-3.0/gtk.css は noctalia が実行時に書き換えるため、Home Manager の extraCss では管理できない。gtk-dark.css は GTK3 がユーザー側で読む保証を確認できなかった。テーマ側に追記すれば GTK の挙動に依存しない。テーマ名は adw-gtk3-dark のまま。

確認

  • Thunar を GTK_THEME=adw-gtk3-dark で起動して before / after を比較: 列見出しのコントラスト 2.6 → 6.1、選択行の文字が暗い色になった
  • nix flake check --no-build が成功。switch は未実行

注意

adw-gtk3 のバージョンを上げたときは、追記した CSS が新しいスタイルと合うか確認する。

🤖 Generated with Claude Code

Selected rows rendered the view foreground on the accent background
(about 1.9:1) and treeview column headers were mixed down to about 3:1.
Append overrides to the packaged theme instead of the Noctalia-managed
gtk.css, which Home Manager cannot own.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tnmt tnmt closed this Nov 20, 2026
@tnmt
tnmt deleted the DANDORI-106-adw-gtk3-contrast branch November 20, 2026 09:50
@tnmt

tnmt commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

ブランチ名の変更で閉じたため、#15 に移した。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant