Merge lp://qastaging/~zsombi/ubuntu-ui-toolkit/paleette2 into lp://qastaging/ubuntu-ui-toolkit/staging

Proposed by Zsombor Egri
Status: Merged
Approved by: Zsombor Egri
Approved revision: 1837
Merged at revision: 1824
Proposed branch: lp://qastaging/~zsombi/ubuntu-ui-toolkit/paleette2
Merge into: lp://qastaging/ubuntu-ui-toolkit/staging
Diff against target: 1570 lines (+383/-186)
51 files modified
components.api (+5/-2)
examples/ubuntu-ui-toolkit-gallery/ListItemLayouts.qml (+1/-0)
src/Ubuntu/Components/1.3/OptionSelector.qml (+2/-1)
src/Ubuntu/Components/1.3/PageHeadConfiguration.qml (+2/-2)
src/Ubuntu/Components/1.3/TextField.qml (+1/-1)
src/Ubuntu/Components/1.3/UbuntuColors.qml (+2/-2)
src/Ubuntu/Components/ListItems/1.3/Empty.qml (+3/-1)
src/Ubuntu/Components/ListItems/1.3/LabelVisual.qml (+3/-3)
src/Ubuntu/Components/ListItems/1.3/Standard.qml (+2/-2)
src/Ubuntu/Components/Popups/1.3/Dialog.qml (+3/-3)
src/Ubuntu/Components/Themes/1.3/Palette.qml (+12/-4)
src/Ubuntu/Components/Themes/1.3/PaletteValues.qml (+12/-1)
src/Ubuntu/Components/Themes/Ambiance/1.3/AmbianceNormal.qml (+5/-3)
src/Ubuntu/Components/Themes/Ambiance/1.3/AmbianceSelected.qml (+27/-0)
src/Ubuntu/Components/Themes/Ambiance/1.3/BottomEdgeHintStyle.qml (+13/-5)
src/Ubuntu/Components/Themes/Ambiance/1.3/BubbleShape.qml (+5/-36)
src/Ubuntu/Components/Themes/Ambiance/1.3/CheckBoxStyle.qml (+7/-3)
src/Ubuntu/Components/Themes/Ambiance/1.3/DatePickerStyle.qml (+1/-1)
src/Ubuntu/Components/Themes/Ambiance/1.3/DialerStyle.qml (+13/-11)
src/Ubuntu/Components/Themes/Ambiance/1.3/DialogForegroundStyle.qml (+2/-2)
src/Ubuntu/Components/Themes/Ambiance/1.3/FocusShape.qml (+4/-2)
src/Ubuntu/Components/Themes/Ambiance/1.3/IconButtonStyle.qml (+6/-6)
src/Ubuntu/Components/Themes/Ambiance/1.3/ListItemStyle.qml (+6/-4)
src/Ubuntu/Components/Themes/Ambiance/1.3/OptionSelectorStyle.qml (+21/-2)
src/Ubuntu/Components/Themes/Ambiance/1.3/OverflowPanel.qml (+4/-4)
src/Ubuntu/Components/Themes/Ambiance/1.3/PageHeadStyle.qml (+11/-5)
src/Ubuntu/Components/Themes/Ambiance/1.3/Palette.qml (+21/-13)
src/Ubuntu/Components/Themes/Ambiance/1.3/PickerStyle.qml (+2/-2)
src/Ubuntu/Components/Themes/Ambiance/1.3/PopoverForegroundStyle.qml (+4/-1)
src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressBarStyle.qml (+12/-4)
src/Ubuntu/Components/Themes/Ambiance/1.3/ScrollbarStyle.qml (+10/-8)
src/Ubuntu/Components/Themes/Ambiance/1.3/SectionsStyle.qml (+8/-5)
src/Ubuntu/Components/Themes/Ambiance/1.3/SliderStyle.qml (+3/-3)
src/Ubuntu/Components/Themes/Ambiance/1.3/SwitchStyle.qml (+3/-3)
src/Ubuntu/Components/Themes/Ambiance/1.3/TextAreaStyle.qml (+5/-5)
src/Ubuntu/Components/Themes/Ambiance/1.3/TextCursorStyle.qml (+3/-3)
src/Ubuntu/Components/Themes/Ambiance/1.3/ToolbarButtonStyle.qml (+8/-9)
src/Ubuntu/Components/Themes/Ambiance/Ambiance.pro (+1/-0)
src/Ubuntu/Components/Themes/SuruDark/1.3/Palette.qml (+22/-13)
src/Ubuntu/Components/Themes/SuruDark/1.3/SuruDarkNormal.qml (+5/-3)
src/Ubuntu/Components/Themes/SuruDark/1.3/SuruDarkSelected.qml (+29/-0)
src/Ubuntu/Components/Themes/SuruDark/SuruDark.pro (+1/-0)
src/Ubuntu/Components/plugin/privates/threelabelsslot_p.cpp (+19/-2)
src/Ubuntu/Components/plugin/privates/threelabelsslot_p.h (+4/-0)
src/Ubuntu/Components/plugin/ucbottomedge.cpp (+4/-0)
src/Ubuntu/Components/plugin/uclabel.cpp (+23/-4)
src/Ubuntu/Components/plugin/uclabel.h (+6/-0)
src/Ubuntu/Components/plugin/uclistitem.cpp (+1/-1)
tests/unit_x11/tst_bottomedge/tst_bottomedge.cpp (+8/-0)
tests/unit_x11/tst_components/AppTheme/Palette.qml (+1/-1)
tests/unit_x11/tst_components/tst_slotslayout.qml (+7/-0)
To merge this branch: bzr merge lp://qastaging/~zsombi/ubuntu-ui-toolkit/paleette2
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Tim Peeters Approve
Cris Dywan Approve
Zoltan Balogh Approve
Review via email: mp+283686@code.qastaging.launchpad.net

Commit message

Palette fix. Update components to use the palette.

Description of the change

Palette fix. Update components to use the palette.

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
1831. By Zsombor Egri

ListItemLatout label default coloring

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

+++ src/Ubuntu/Components/plugin/ucbottomedge.cpp 2016-01-27 06:39:19 +0000
+++ tests/unit_x11/tst_bottomedge/tst_bottomedge.cpp 2016-01-27 06:39:19 +0000

Unrelated? Probably better in a separate branch?

+ d->m_subtitle = new UCLabel(getSubtitleColor, this);

You're passing a method so the Label gets to evaluate the color lambda-style. But UCLabel.m_defaultColor is right now only called in postThemeChanged. To make this really work you'll also need (the equivalent of) onEnabledChanged and onActiveFocusChanged.
I like the idea, but I feel this should be done cleaner...

This might be the right time to fill a gap in our API. I think we already agree we need state-based colors in some form.

How about getPaletteColor returning a UCPaletteColor(QQuickItem* item, const QString& color) object that has a color based on activeFocus and enabled, so UCLabel just needs to listen to colorChanged?
This would kind of enforce consistent use of the palette, and even states which UCLabel doesn't currently implement, but I think that would be a good thing.

review: Needs Information
1832. By Zsombor Egri

Scrollbar colors fixed

Revision history for this message
Zsombor Egri (zsombi) wrote :

> +++ src/Ubuntu/Components/plugin/ucbottomedge.cpp 2016-01-27 06:39:19
> +0000
> +++ tests/unit_x11/tst_bottomedge/tst_bottomedge.cpp 2016-01-27 06:39:19
> +0000
>
> Unrelated? Probably better in a separate branch?

As we discussed, I had to do code change in the BottomEdge, so I thought it would be wiser to also add a test to it. The coloring wasn't working otherwise.

>
>
> + d->m_subtitle = new UCLabel(getSubtitleColor, this);
>
> You're passing a method so the Label gets to evaluate the color lambda-style.
> But UCLabel.m_defaultColor is right now only called in postThemeChanged. To
> make this really work you'll also need (the equivalent of) onEnabledChanged
> and onActiveFocusChanged.
> I like the idea, but I feel this should be done cleaner...

You are right, the enabled must also be handled.

>
> This might be the right time to fill a gap in our API. I think we already
> agree we need state-based colors in some form.
>
> How about getPaletteColor returning a UCPaletteColor(QQuickItem* item, const
> QString& color) object that has a color based on activeFocus and enabled, so
> UCLabel just needs to listen to colorChanged?
> This would kind of enforce consistent use of the palette, and even states
> which UCLabel doesn't currently implement, but I think that would be a good
> thing.

Summarizing of what we discussed, we need a code which selects the color from the proper valueset, however that must be based on enabled and "selected" notion rather than enabled and activeFocus. The selected valueset should only be used if the item has the ability to do that. And we need to decide what will be the criteria. I'd rather do this in a separate MR than in this one. But we can agree on that in the standup.

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
1833. By Zsombor Egri

OptionSelector and ListItem.Empty

1834. By Zsombor Egri

introducing highlighted valueset; changing inactive into disabled, selectedInactive into selectedDisabled; update components

1835. By Zsombor Egri

remove pointer from Popover, shoudl come back when UbuntuShape will have support for it

1836. By Zsombor Egri

refresh default color for Label also when enabled changes

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

I like it, let's see it in the silo

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
1837. By Zsombor Egri

fix opacity used for disabled state

Revision history for this message
Cris Dywan (kalikiana) wrote :

> Summarizing of what we discussed, we need a code which selects the color from
> the proper valueset, however that must be based on enabled and "selected"
> notion rather than enabled and activeFocus. The selected valueset should only
> be used if the item has the ability to do that. And we need to decide what
> will be the criteria. I'd rather do this in a separate MR than in this one.
> But we can agree on that in the standup.

Yeah, as agreed we can iterate it later; enabled is now handled and that's enough for what we need here.
Things are looking a lot better with all the fixes!

review: Approve
Revision history for this message
Tim Peeters (tpeeters) wrote :

Looks fine.

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches