diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-04-22 10:07:45 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-05-26 10:00:21 +0000 |
commit | 9ca63fbd0b022bd48d112f4beb38712e41612fb5 (patch) | |
tree | 53520b7dbc4b70f9cda47dcbc9429fbb4b4c2479 /examples | |
parent | 44ac831c51d248b115e594ae930c3bb359df68a1 (diff) |
Introduce a 'System' theme to the styles.
Setting the theme to System chooses either the light or dark theme
based on the system theme colors. However, when reading the value of
the theme property, the value is never System, but the actual theme.
[ChangeLog][Controls][Material] Added Material.System theme enum value,
that can be used to let the Material style choose either the light or
dark theme based on the system theme colors.
[ChangeLog][Controls][Universal] Added Universal.System theme enum value,
that can be used to let the Universal style choose either the light or
dark theme based on the system theme colors.
Change-Id: Ibfc9f01953cb8322b64d59413cfbaef9d4bb28fd
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols2/gallery/qtquickcontrols2.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quickcontrols2/gallery/qtquickcontrols2.conf b/examples/quickcontrols2/gallery/qtquickcontrols2.conf index 61375ac1..e219ac1a 100644 --- a/examples/quickcontrols2/gallery/qtquickcontrols2.conf +++ b/examples/quickcontrols2/gallery/qtquickcontrols2.conf @@ -1,8 +1,8 @@ [Material] Primary=LightGreen Accent=LightGreen -Theme=Light +Theme=System [Universal] Accent=Green -Theme=Light +Theme=System |