Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip text difficult to read #38

Open
pawanneupane opened this issue Apr 8, 2021 · 8 comments
Open

Tooltip text difficult to read #38

pawanneupane opened this issue Apr 8, 2021 · 8 comments

Comments

@pawanneupane
Copy link

I'm using SolArc-Dark theme on Arch Linux with Cinnamon DE. The only issue I've found is with tooltips as the tooltip texts are quite difficult to read. I've attached a screenshot of a tooltip in Nemo for reference, but it's the same in other applications too.

Is there a way to change the tooltip text color to make them more readable everywhere?

tooltiptext

@schemar
Copy link
Owner

schemar commented Apr 11, 2021

Maybe. The way SolArc works is that it simply replaces colors. Check out solarize.sh to see what it does. The problem with changing that color is that it possibly breaks stuff elsewhere.

Do you know the original color in Arc or can you show a screenshot of the same notification in Arc? Though I am not very optimistic that we can get this fixed.

@pawanneupane
Copy link
Author

pawanneupane commented Apr 11, 2021

This is a screenshot of the same notification in Arc-Dark, part of the arc-gtk-theme package from the official Arch repositories.

tooltiptextarcdark

@schemar
Copy link
Owner

schemar commented Apr 12, 2021

Hmm, I see. Thanks. Can you get the color codes for Arc and SolArc tooltip background and foreground and compare them with what we have in solarize.sh?

The thing is that we only change colors without the context of where the color is used. So if we changed the color for the tooltip (which you could also try locally), there is a chance that something else becomes less readable.

Would it be possible for you to test another color from the solarized palette as foreground or background of the tooltip?

@pawanneupane
Copy link
Author

pawanneupane commented Apr 12, 2021

I think I'll have to extract the gtk.gresource file to compare the color codes for gtk-3.0, but these are the color codes for gtk-2.0 in gtkrc:

SolArc-Dark:

gtk-color-scheme = "`tooltip_bg_color`: #4B5162"
gtk-color-scheme = "tooltip_fg_color: #fdf6e3"

Arc-Dark:

gtk-color-scheme = "tooltip_bg_color: #4B5162"
gtk-color-scheme = "tooltip_fg_color: #ffffff"

I hope this helps.

I'll also try with a different color from the solarized palette and let you know how it goes.

@pawanneupane
Copy link
Author

After extracting the gtk.gresource files of both Arc-Dark and SolArc-Dark, this is what I found:

SolArc-Dark (gtk-main.css)

tooltip {
  border-radius: 2px;
  box-shadow: none; }
  tooltip.background {
    background-color: rgba(12, 92, 112, 0.95);
    background-clip: padding-box; }
    tooltip.background label {
      padding: 4px; }
  tooltip decoration {
    background-color: transparent; }
  tooltip * {
    background-color: transparent;
    color: #657b83; }

Arc-Dark (gtk-main-dark.css)

tooltip {
  border-radius: 2px;
  box-shadow: none; }
  tooltip.background {
    background-color: rgba(75, 81, 98, 0.95);
    background-clip: padding-box; }
    tooltip.background label {
      padding: 4px; }
  tooltip decoration {
    background-color: transparent; }
  tooltip * {
    background-color: transparent;
    color: #BAC3CF; }

@schemar
Copy link
Owner

schemar commented Apr 13, 2021

Thank you for taking the time and figuring this out! What I meant was: would it be possible for you to clone this repository, change the relevant variables in solarize.sh and check if you can improve it or post a screenshot? That would be a tremendous help. I only have very few GTK apps anymore and cannot easily check (switched to KDE Plasma with i3wm and I am using the Nord color palette everywhere ...).

Let me know if you need help with the installation, but it should all be described in the README.

@pawanneupane
Copy link
Author

Oh okay. I'm sorry I misunderstood it earlier. I'll test it as you suggested and get back to you. I might need your help with identifying the color code for tooltips in solarize.sh though. I had previously looked at the file and failed to figure out the tooltip text and background colors.

@schemar
Copy link
Owner

schemar commented Apr 14, 2021

OK 👌 Just let me know.

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

No branches or pull requests

2 participants