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

[Estuary] Fix selected colours #24256

Merged
merged 2 commits into from
Dec 19, 2023
Merged

[Estuary] Fix selected colours #24256

merged 2 commits into from
Dec 19, 2023

Conversation

Hitcher
Copy link
Contributor

@Hitcher Hitcher commented Dec 17, 2023

Description

Fixes the selected colours in lists for the default and charcoal schemes.

Motivation and context

It wasn't obvious what the selected items were in lists for the default and charcoal colour schemes. This fixes both of them.

How has this been tested?

Tested locally.

What is the effect on users?

Screenshots (if appropriate):

Before (default):

screenshot00000

Before (charcoal):

screenshot00002

Comparison with brown:

screenshot00004

After (default):

screenshot00001

After (charcoal):

screenshot00003

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • Student submission (PR was done for educational purposes and will be treated as such)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

@Hitcher Hitcher self-assigned this Dec 17, 2023
@Hitcher Hitcher added Type: Fix non-breaking change which fixes an issue Component: Skin v21 Omega labels Dec 17, 2023
@Hitcher Hitcher added this to the Omega 21.0 Beta 3 milestone Dec 17, 2023
Copy link
Member

@jjd-uk jjd-uk left a comment

Choose a reason for hiding this comment

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

Much better.

Copy link

@jurialmunkey jurialmunkey left a comment

Choose a reason for hiding this comment

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

Looks good to me. Also did a colour blindness filter check in GIMP and has good visibility in all three.

Possible side issue not for this PR but related, I noticed in FileBrowser that selectedcolor is hardcoded to green. Not sure why that is but I suspect should be changed for consistency.

<selectedcolor>green</selectedcolor>

@jjd-uk
Copy link
Member

jjd-uk commented Dec 18, 2023

@HitcherUK the point made about hardcoded green in FileBrowser, I think that should be addressed. Can you do that? if so can you add here or would you prefer to do a separate PR?

@Hitcher
Copy link
Contributor Author

Hitcher commented Dec 18, 2023

I can add it to this PR as it covers 'selectedcolor'.

@Hitcher
Copy link
Contributor Author

Hitcher commented Dec 18, 2023

Added fix for file browser selected colour being green.

Copy link
Member

@garbear garbear left a comment

Choose a reason for hiding this comment

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

I like what I'm seeing in the screenshots!

@jjd-uk
Copy link
Member

jjd-uk commented Dec 19, 2023

LGTM.

@HitcherUK @jurialmunkey Was looking to check out the FileBrowser change just to verify it picks up the default label selectedcolour however I can't find any instance where a selected item would actually be triggered, so not sure what that was even doing there at all in the first place. Am I missing some use case that might set a selected item? all I can if that is that it is used for browsing the file structure for example when adding a source, or browsing to find a subtitle.

@jjd-uk jjd-uk merged commit 605b083 into xbmc:master Dec 19, 2023
1 check passed
@Hitcher Hitcher deleted the fix_select_colour branch December 19, 2023 18:32
@jurialmunkey
Copy link

Am I missing some use case that might set a selected item?

@jjd-uk - Dialog class has an enableMultiple boolean for browse function:
https://xbmc.github.io/docs.kodi.tv/master/kodi-base/d6/de8/group__python___dialog.html#ga3a3b4ef3f55a926aea5e81d7620a6174

I assume that's what select colour is used -- though I'm not sure if I've ever seen anything use it.

@jurialmunkey
Copy link

FYI Here's what the change looks like in FileBrowser with multiple selections:

screenshot00332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Skin Type: Fix non-breaking change which fixes an issue v21 Omega
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants