lp:~larsu/ubuntu-ui-toolkit/custom-icon-lookup
- Get this branch:
- bzr branch lp:~larsu/ubuntu-ui-toolkit/custom-icon-lookup
Branch merges
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Tim Peeters: Needs Resubmitting
- Albert Astals Cid (community): Needs Information
-
Diff: 404 lines (+253/-64) (has conflicts)7 files modifieddebian/control (+1/-1)
modules/Ubuntu/Components/Icon10.qml (+8/-36)
modules/Ubuntu/Components/plugin/plugin.pro (+4/-0)
modules/Ubuntu/Components/plugin/unitythemeiconprovider.cpp (+224/-25)
modules/Ubuntu/Components/plugin/unitythemeiconprovider.h (+3/-0)
tests/unit_x11/tst_components/tst_components.cpp (+12/-1)
tests/unit_x11/tst_components/tst_icon.qml (+1/-1)
Related bugs
Related blueprints
Branch information
Recent revisions
- 1230. By Lars Karlitski
-
unitythemeiconp
rovider: also return the largest icon when requested size is 0 There's a test and a bug about it. Seems to be expected behavior.
- 1229. By Lars Karlitski
-
unitythemeiconp
rovider: support size == -1 Qt sets requestedSize to -1 if no size has been specified. Return the largest
available icon in that case. - 1228. By Lars Karlitski
-
unitythemeiconp
rovider: don't load icons that might not be used Only load the icon that has the best matching size, not the ones encountered
while searching for it. - 1225. By Lars Karlitski
-
Icon: remove unnecessary sizing workaround
UnityThemeIconP
rovider behaves correctly now for small icon sizes. This patch also makes sure that icons are always drawn with the correct aspect
ratio. Consumers only need to supply a height, whereas they needed to set both
width and height.In the process, the update() function was removed and is thus not called when
the width and height of the Icon changes. This causes no regressions, as Qt
doesn't reload icons with the same url anyway. - 1224. By Lars Karlitski
-
unitythemeiconp
rovider: manually load icons Previously, UnityThemeIconP
rovider used QIcon::fromTheme() to lookup and load
icons. That function uses fdo's default icon lookup algorithm: it looks at the
current theme and all parent themes for each icon in turn. We'd prefer a
breadth-first search, where all icon names are looked up in the current theme
before falling back to the parent themes (see lp: #1324184). This patch
implements fdo's FindBestIcon() algorithm, which behaves like that.It also now properly support rectangular icons and always returns an icon with
the requested size (adjusted for preserving the aspect ratio).
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:ubuntu-ui-toolkit