Skip to content

Add unfocused selection color to front most window #1171

@mcclurgm

Description

@mcclurgm

What Happened?

See also #709

Even when a text widget isn't in focus, it displays the accent color "focused" selection color. In the current state there is an unfocused color, but that only applies when the whole window is in the background. It's still possible to have a selection in a widget that's not focused, even when the window is in the foreground.

This makes it confusing what widget actually has focus. If two text widgets are on screen, but the one that's not focused has selection, then it is more prominent and looks more like it's focused, even though it is not.

This is somewhere in between a bug report and a feature request. But since there is an unfocused behavior that just doesn't apply in all cases I consider it more of an issue than a new feature.

Steps to Reproduce

To see an unfocused widget in a focused window:

  1. Open a file selector (for example, the Save As dialog on a new file in Code)
  2. Start typing in the filename field. Then select the text you've entered. It should highlight in your accent color, and the text field should also have an accent color highlight surrounding it to show that it's focused.
  3. Start a search in the browser, by clicking on an empty part of the window and typing. It should bring up a search field that will have focus (demonstrated by the highlight surrounding the search field).
  4. Notice that the selected text in the filename field is still highlighted in accent color, even though the widget is not focused.

Bildschirmfoto von 2022-01-21 11 43 09

Expected Behavior

When input does not go directly to the text widget, its selection color should be grey instead of accent. In the above example, the filename field would have a grey (unfocused) selection highlight.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions