Skip to content

GTK 4 @import not insert when file is empty #1280

@JaquesBoeno

Description

@JaquesBoeno

Compositor

  • Niri
  • Hyprland
  • MangoWC (dwl)
  • Sway

Distribution

  • Arch Linux
  • CachyOS
  • Fedora
  • NixOS
  • Debian
  • Ubuntu
  • Gentoo
  • OpenSUSE
  • Other (specify below)

If Other, please specify

No response

dms version

1.0.3

Description

The gtk.css file does not receive the line @import url("dank-colors.css"); if the file is empty; therefore, the DMS color theme is not applied correctly in GTK applications.
Suggestion for improvement/fix: replace the sed -i "1i\\$gtk4_import" "$gtk_css" line in the quickshell/scripts/gtk.sh file with echo $gtk4_import >> "$gtk_css"

Expected Behavior

No response

Steps to Reproduce & Installation Method

Leave your ~/.config/gtk-4.0/gtk.css file empty.
Click on “Apply GTK colors” in Personalization → Themes & Colors in the configuration file.

Error Messages/Logs

N/A

Screenshots/Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions