Replies: 8 comments 11 replies
|
tbh, I dont get what you are saying... when you set HA tokens in your (regular) theme, they are applied everywhere HA decides to apply them, and that has nothing to do with UIX. now if you start using UIX theming you can target specific elements, like uix-more-info, and only that. Is that what you are referring to? if yes, please remember that you can still style per dashboard, or per view card even, and have a main theme set. UIX is all equipped to allow you to do so. long story short: please add an example.... ;) and yes, you need to change / adapt the tokens in downloaded themes like you mention, many authors of those themes dont do that, and if HA frontend changes, you're out of luck. but again, that is a bug in the themes no longer being up to date with HA itself bottom-line answer to the poll: |
|
Hi thanks for your reply, did you read the mentioned discussion here? Please let me know, if i need to further clarify what i already tried to describe there :) |
|
You are right. I just tested the iOS theme as the main theme, and in that case the problem does not occur at all — the more-info dialogs are styled consistently. I'll investigate this further on my side and get back to you once I understand what is causing the difference. Sorry for the possible confusion, and thanks for pointing this out. |
I believe this to be the crux of the matter. Or rephrase, probably your misunderstanding of how things work in HA (please dont get me wrong, not pointing a finger or any negative connotation..) Once you'll read up on the matter in the official documentation and the (sometimes obscure changes in HA frontend... I'll admit to that) you will see that those more-info dialogs as just part of the full frontend, and not separate in the default theme. if you check my gists (see bio), where I link the exact files in Frontend that contain the style tokens, you'll see which applies to which. |
Sure: I enter edit mode of the dashboard and click the pen to edit a view. There i set the theme for this view.
I know that. I justed used that name for the minimal theme example. What i am talking about ist this feature introduced with 7.7.0. With that the active theme is used by uix to style the more info dialog (as i understand that correctly).
Exactly, but the thing is that this 1 token (in the example) isn't applied consistently, as my example was meant to illustrate. With a “proper" (meaning complete) theme, this leads to the effects mentioned at the beginning: a mix of styles that are applied and those that aren't. Perhaps I should point out, to avoid further confusion, that this has nothing to do with the styling by uix. It’s not about a uix style, but rather the uix-function that applies all styles (token) from the active theme to ha-adaptive-dialog. |
|
On review I see this is an issue with how UIX applies a theme and elements that inherit from standard browser elements like As UIX allows theme override in many places, this will be a general UIX theme application fix. Once this is done then there will be no issues with more-info on a view with override theme. This will mean no need for any option to not style more-info as the suggestion was due to dealing with the issue. As such I will close this poll and make an issue. I will update the original discussion with the issue once created. Thank you @Kanecaine for your patience and also @Mariusthvdb for your input. |













Uh oh!
There was an error while loading. Please reload this page.
Background
Since UIX 7.7.0, dashboard theme overrides are also applied to more-info dialogs.
I understand the reasoning behind this, but I think there is an important distinction between using a theme as a dashboard theme and using it as the Home Assistant main theme.
I have always used themes at dashboard level. For a long time I wasn't even aware that themes could be used as the main HA theme. In fact, I intentionally prefer the rest of Home Assistant — including more-info dialogs — to retain the normal native HA appearance.
Why this matters
I tested this with two themes:
iOS Themes — many issues in more-info
Graphite — much better, but even its dark variants still show several differences
The pattern was remarkably consistent: existing theme variables are used by newer HA/Web Awesome components inside more-info, although the theme was originally designed for the dashboard context.
More details about this can be found in this discussion.
Of course, these themes could potentially be updated. But that assumes that theme authors consider the more-info-dialog as part of the scope of their dashboard themes. I'm not sure that is necessarily the intended use case for many existing themes.
The question
Would it make sense for UIX to provide an explicit opt-out, for example:
This would simply leave the native Home Assistant more-info styling untouched. It would not need to introduce another mechanism for selecting a different theme.
Alternatively to a integration setting, maybe this could be implemented as a theme-level keyword that is only interpreted by UIX.
I'm mainly interested in whether other users see this distinction the same way:
Should a dashboard theme automatically style more-info-dialogs, or should users be able to keep the native HA appearance for dialogs?
Please react with 👍 if you would like UIX to provide such an option. If you disagree, please react with 👎.
All reactions