arc-theme icon indicating copy to clipboard operation
arc-theme copied to clipboard

GtkSourceView gutter rendered in white when using Arc-Dark

Open PMunch opened this issue 1 year ago • 3 comments

Details

Please add the following information:

  • Arch, arc-gtk-theme package version 20221218-1
  • Anything which uses GtkSourceView is affected, but could try Gedit 44.2-1
  • Installed through pacman, package arc-gtk-theme
  • Version 20221218-1

Unless this is a non-visual issue, always add screenshots to help describe your problem. 2023-03-30T13:52:29 2023-03-30T13:53:33

PMunch avatar Mar 30 '23 11:03 PMunch

I have noticed myself earlier, and couldn't find any way to change this within the GTK theme (i.e. there's no CSS selectors you could use to style the textview elements). The problem is present also with Adwaita-dark, so this doesn't seem to be Arc specific thing.

However, GtkSourceView has its own XML-based style system you can/should use. In gedit, you can select color scheme from Preferences->Font and colors. Unfortunately there's no Arc styles available at least from this repo.. :/

jnsh avatar Mar 30 '23 12:03 jnsh

Hmm, I assumed there was some inheritance between these styles and the system theme since the background changed colour. But I guess that's not the case. Maybe Arc could ship such a style which only defined these colours and then parented on the base style? That would require being able to set the default style for a theme though, which I'm not sure is possible.

PMunch avatar Mar 30 '23 13:03 PMunch

That would require being able to set the default style for a theme though, which I'm not sure is possible.

Not possible. It's not even possible to set default GTKSourceView theme anywhere if I'm not mistaken, but it has to always be set per-application.

I will look into adding GtkSourceView style to the theme nevertheless.

jnsh avatar Mar 30 '23 14:03 jnsh