Skip to content

Streamline colors and button style / behaviour#1425

Open
wutschel wants to merge 11 commits into
xbmc:masterfrom
wutschel:streamline_colors
Open

Streamline colors and button style / behaviour#1425
wutschel wants to merge 11 commits into
xbmc:masterfrom
wutschel:streamline_colors

Conversation

@wutschel

Copy link
Copy Markdown
Collaborator

Description

As discussed in reviews of previous PRs it is desired to further streamline the colors, button styles and button behaviour. The main change in this PR is to define common button styles which can be set via UIButton extensions which are added to Utilities.

There are three main styles defined:

  1. Text style buttons (like "Edit")
  2. Icon style buttons using setImage (that's the majority of buttons)
  3. Icon style buttons using setBackgroundImage and overlays (only used for toolbar in database browser)

All icon buttons use a common style which highlights the button by the default way of darkening the icon, not using showsTouchWhenHighlighted anymore. Selected database browser icons use a blue tint for selected state. Only few exceptions are kept for colored icons like the Kodi icon and the white NowPlaying controls (incl. shuffle/repeat/fullscreen).

To align custom buttons to the highlight-by-fade theme an alpha animation is implemented for custom button selection.

For this change I am sure we will need to test before mainlining. The changes are quite visible when e.g. using playback controls, remote toolbar buttons or when changing volume. Some of the buttons before this change were not highlighting selection at all. Generally, I think the highlighting by darkening the icon is a very elegant way to give user feedback.

Summary for release notes

Improvement: Common button style / behaviour
Improvement: Buttons highlighted on selection

@wutschel wutschel force-pushed the streamline_colors branch 2 times, most recently from 5cc3a6c to fe0cfcc Compare January 24, 2026 17:36
@wutschel wutschel force-pushed the streamline_colors branch from fe0cfcc to 5051896 Compare March 14, 2026 08:36
@wutschel wutschel force-pushed the streamline_colors branch from 5051896 to 0137150 Compare March 26, 2026 06:10
@wutschel wutschel mentioned this pull request Mar 27, 2026
@wutschel wutschel force-pushed the streamline_colors branch from 0137150 to 1e94dd2 Compare March 28, 2026 10:27
@wutschel wutschel force-pushed the streamline_colors branch from 1e94dd2 to 6fbbb61 Compare April 6, 2026 08:32
@wutschel wutschel force-pushed the streamline_colors branch from 6fbbb61 to 0f3b81f Compare April 22, 2026 05:28
@wutschel wutschel force-pushed the streamline_colors branch 6 times, most recently from 0eea4a8 to 2baf420 Compare May 10, 2026 11:36
@wutschel wutschel marked this pull request as ready for review May 10, 2026 15:32
@wutschel wutschel force-pushed the streamline_colors branch from fbbc669 to 2e59919 Compare June 16, 2026 05:05
wutschel added 11 commits June 16, 2026 19:59
Uses ICON_TINT_COLOR on top of INFO_POPOVER_COLOR background. No colorization for NowPlaying to align with playback controls.
This ensures feedback is given to the user after selecting custom buttons. For the OnOff switch buttons the feedback is done via changing the OnOff switch state. Remove assignment of CustomButtonCell's title.highlightedTextColor as anyway unused.
Text style:
- white for Nornal/Selected
- gray for Disabled

Common icon style:
- ICON_TINT_COLOR for Normal
- No image for Highlighted/Selected
- showsTouchWhenHighlighted = NO
- Lets button turn gray when highlighted.

Database toolbar style:
- ICON_TINT_COLOR_ACTIVE for Selected
- No image for Highlighted
- Lets button turn gray when highlighted.

Few deviations where color shall not be adapted, like Kodi icons or the Kodi blue shuffle/repeat icons.
All of this is configured in the xib.
@wutschel wutschel force-pushed the streamline_colors branch from 2e59919 to 568152d Compare June 16, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant