[SDK] Cannot set background colour for overflow of leading/trailing actions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UX |
Fix Committed
|
High
|
Jouni Helminen | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri |
Bug Description
[Update]
we are setting a better default value for the bgcolour for now (with 20% lighter background) which should work on the dark theme. As Zsombor also pointed out, you can customise the background with a custom theme:
"The solution is for you to provide your own theme, where you override the ListItemStyle and set the colour of the trailing panel accordingly."
-------
In music we use dark colours for the listitem background and therefore the background of the actions. With the 'new' listitems you can set the colour of the action by putting it inside a Rectangle. However I have been unable to set the colour if you 'pull' too far, it appears as white in this case.
I have created a mini app here [0], if you open the application and drag a listitem to the left you will notice that the action appears, with a background colour set, but then if the user pulls too far it turns to white. (I assume it is the same with the leading actions if you didn't want them to have a red background)
Is there anyway we can set this colour?
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Tim Peeters: Approve
-
Diff: 137 lines (+70/-8)4 files modifiedmodules/Ubuntu/Components/Themes/Ambiance/1.2/ListItemStyle.qml (+10/-4)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemStyle.qml (+10/-4)
modules/Ubuntu/Components/Themes/SuruDark/1.2/ListItemStyle.qml (+25/-0)
modules/Ubuntu/Components/Themes/SuruDark/1.3/ListItemStyle.qml (+25/-0)
summary: |
- Cannot set background colour for overflow of leading/trailing actions + [SDK] Cannot set background colour for overflow of leading/trailing + actions |
Changed in ubuntu-ux: | |
importance: | Undecided → High |
assignee: | nobody → Jouni Helminen (jounihelminen) |
Changed in ubuntu-ux: | |
status: | New → Triaged |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-ux: | |
status: | Triaged → Fix Committed |
description: | updated |
The bug here is the colouring of the panel colors using Palette value rather than setting the bg colour of the panel. Unfortunately we did not receive any colouring guides from UX for dark themes, only for Ambiance.