flutter-packages icon indicating copy to clipboard operation
flutter-packages copied to clipboard

Does not pickup changes of org.gnome.desktop.interface accent-color

Open rusty-snake opened this issue 5 months ago • 1 comments

Package

dynamic_color

Existing issue?

What happened?

Expected vs actual result:

Excepted: Changing org.gnome.desktop.interface accent-color changes accent colors of flutter app. Actual: org.gnome.desktop.interface accent-color is ignored

Steps to reproduce:

  1. gsettings set org.gnome.desktop.interface accent-color 'orange'
  2. Restart App
  3. Not seeing orange

Relevant log output

[✓] Flutter (Channel stable, 3.32.8, on Fedora Linux 42 (Workstation Edition) 6.15.7-200.fc42.x86_64, locale de_DE.UTF-8) [Xms]
    • Flutter version 3.32.8 on channel stable at /home/rusty-snake/…/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision edada7c56e (vor 2 Tagen), 2025-07-25 14:08:03 +0000
    • Engine revision ef0cd00091
    • Dart version 3.8.1
    • DevTools version 2.45.1

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [Xs]
    • Android SDK at /home/rusty-snake/…/android_sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /usr/bin/java
      This JDK was found in the system PATH.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (Red_Hat-21.0.8.0.9-1) (build 21.0.8+9)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [20ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop [Xms]
    • clang version 20.1.8 (Fedora 20.1.8-1.fc42)
    • cmake version 3.31.6
    • ninja version 1.12.1
    • pkg-config version 2.3.0
    ! Unable to access driver information using 'eglinfo'.
      It is likely available from your distribution (e.g.: apt install mesa-utils)

[!] Android Studio (not installed) [Xms]
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).

[✓] Connected device (1 available) [Xms]
    • Linux (desktop) • linux • linux-x64 • Fedora Linux 42 (Workstation Edition) 6.15.7-200.fc42.x86_64

[✓] Network resources [Xms]
    • All expected network resources are available.

! Doctor found issues in 3 categories.

rusty-snake avatar Jul 27 '25 07:07 rusty-snake

+1 The docs say it'll take the @theme_selected_bg_color color from the active GTK theme

So I added @define-color theme_selected_bg_color #ff0000 in ~/.config/gtk-4.0/colors.css (Yes I did import colors.css in gtk.css)

But DynamicColorPlugin.getAccentColor always returns the same value (#92CEF6) and idk where it gets it from

Research seems kinda hopeless, so idk if im doing something wrong in code, or if im doing something wrong in my GTK configs, or if this plugin is doing something wrong or oudated, or if GTK is just doing GTK things...

flloschy avatar Oct 23 '25 17:10 flloschy