Skip to content

Conversation

@slovdahl
Copy link

@slovdahl slovdahl commented Aug 8, 2025

This fixes the "Enter activity.." text input to actually be usable and visible on my Ubuntu 24.04 (GNOME 46) when using light mode.

In dark mode having the extra style class seems to work fine, but in light mode the input field is a light color and the text is also almost in the same color, so you cannot see what you write.

With the fix:

Screenshot from 2025-08-08 11-11-50

Without the fix:

Screenshot from 2025-08-08 11-13-39

This fixes the "Enter activity.." text input to actually be usable and visible
on my Ubuntu 24.04 (GNOME 46) when using light mode.

In dark mode having the extra style class seems to work fine, but in light mode
the input field is a light color and the text is also almost in the same color,
so you cannot see what you write.
track_hover: true,
hint_text: _("Enter activity…"),
style_class: "search-entry"
hint_text: _("Enter activity…")
Copy link
Author

@slovdahl slovdahl Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea if this is the right way to fix it, but opening a PR just to start the discussion. The custom style was added in e7b2e5c.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this issue. It might be related to your gtk theme settings.

The commit that introduced it is ancient.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the hint! I was thinking I have a fairly standard Ubuntu 24.04 with GNOME.. But I installed a clean Ubuntu 24.04 in a VM and was unable to reproduce the same problem.

After searching through my home directory I found a reference to search-entry in the Blur my Shell extension. And indeed, after installing Blur my Shell in the VM I immediately got the same problem.

So maybe I should report the issue there instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking back at #103 it seems like it was a workaround added for old GNOME versions 🤔 Or? So is it needed for anything any more?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't know. I'm not sure if current GNOME versions still use style_class at all (but I'm assuming it does, otherwise removing wouldn't have an effect, right?).

In general I would say it is innocent. We're not mandating anything about background or font colors or any other specific style attributes. It's just an abstract hint about the purpose of the widget. AFAICT this is how it should be done. It's then up the theme to determine how `search-entry´ widgets should be rendered.

I haven't heard about "blur my shell" so far. I'm generally sceptical about extensions that only add eye candy. As the authors of that extension seem to care a lot about this kind of things, maybe they'll be able to fix it, or at least provide some insight about style_class and how they handle it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit confused why an extension like "blur my shell" is necessary at all. To my understanding, this is what themes are for. Possibly the extension is doing stuff that can't be done with themes. But then, effects like the one you describe should be expected. The extension would need to take utmost care to play well with the settings the current theme is applying, which (I suppose) will be hard.

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

Successfully merging this pull request may close these issues.

2 participants