Sway default color theme has very low contrast

My Pocket Reform just arrived. So far, I am happy with it. However, I selected Sway, and the applications menu has very low contrast. The titles of the applications are in white, and the menu is using a very light gray. You can see it on the picture. The default Sway theme that comes with the Pocket Reform needs a fix. I already fixed it by editing `.config/wofi.css`

1 Like

Right, thanks for catching this. I don’t know why it is so hard to keep that thing using the correct (dark) color scheme. I think we should add the -G (--gtk-dark) switch to wofi invocations. There is one on the logo button in waybar config and one on the super+d shortcut in the sway config.

Thank you for reporting this issue!

Can you confirm that you started wofi via waybar and not using a shortcut?
Because the keyboard shortcut from the sway config already includes --gtk-dark but the wofi invocation in waybar does not.

I opened this MR which copies the command line for running wofi which sway uses over to waybar. They were not kept in sync for some reason:

Yes, I just clicked on the bar the first time I started the system.

Initialy I had the exact same problem. the “application starter” had a white background with white text. after some search i found in ~/.config/wofi.css the *-block had been commented out. i removed the comments and set the backround color to #333333, reload the sway-config and now it’s fine.

The reason that this block is commented out because it should be up to the gtk setting whether wofi shows up in light or dark mode. In theory you should be able to switch your gnome/gtk setting and then automatically get the right setting. Since this doesn’t seem to work we hack around it with the --gtk-dark switch. This is what I did in the MR I linked above. If that solution does not work, then yes, we can set the * property of the css to a custom color. Does the solution of the MR above work for you?

I hope i understood right:

i undid my changes in the wofi.css and replaced the wofi on-click line in the active waybar configuration to “on-click”: “pkill -x wofi || wofi --show drun --gtk-dark --prompt=Search --no-actions --insensitive --allow-images --width=66% --height=66% --style=$HOME/.config/wofi.css”

And - this works fine.