Theme loads MainViewStyle 1.2 when MainView has a dark backgroundColor set.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
High
|
Unassigned |
Bug Description
I applied this patch .cpp in order to see which theme files are loaded:
=== modified file 'src/Ubuntu/
--- src/Ubuntu/
+++ src/Ubuntu/
@@ -26,6 +26,8 @@
#include "ucstyleditemba
#include "ucthemingexten
+#include <QDebug>
+
#include <QtQml/qqml.h>
#include <QtQml/qqmlinfo.h>
#include <QtQml/QQmlEngine>
@@ -705,6 +707,7 @@
bool fallback = false;
QUrl url = styleUrl(styleName, version, &fallback);
if (url.isValid()) {
+ qDebug()<<"creating style component from "<<url;
if (fallback) {
==========
Now, I run this program with qmlscene:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
width: units.gu(100)
height: units.gu(80)
backgroundC
}
the output is:
creating style component from QUrl("file:
creating style component from QUrl("file:
creating style component from QUrl("file:
creating style component from QUrl("file:
obviously, the wrong MainViewStyle.qml is loaded. If there is no MainViewStyle in SuruDark 1.3, then it should fallback to the MainViewStyle of Ambiance 1.3, not that of SuruDark 1.2.
Related branches
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Tim Peeters: Approve
-
Diff: 197 lines (+105/-29)6 files modifiedsrc/Ubuntu/Components/plugin/uctheme.cpp (+30/-25)
tests/unit_x11/tst_subtheming/themes/DerivedTheme/1.2/TestStyle.qml (+21/-0)
tests/unit_x11/tst_subtheming/themes/DerivedTheme/1.3/Palette.qml (+29/-0)
tests/unit_x11/tst_subtheming/themes/DerivedTheme/parent_theme (+1/-0)
tests/unit_x11/tst_subtheming/tst_subtheming.cpp (+19/-0)
tests/unit_x11/tst_subtheming/tst_subtheming.pro (+5/-4)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
milestone: | none → 11 |
importance: | Undecided → High |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.