- 22 Feb, 2017 1 commit
-
-
Tim Jenssen authored
Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by:
hjk <hjk@qt.io>
-
- 13 Dec, 2016 1 commit
-
-
Ulf Hermann authored
We want to install the theme as singleton in various QML engines. QML engines take ownership of their singletons and want to delete them on exit. In order to accommodate for this we need copies of the theme. As all the containers in ThemePrivate are implicitly shared, it shouldn't be a lot of effort to copy it. Change-Id: I52391add2fe8f540c19c804945ce9d9161905b90 Reviewed-by:
Thomas Hartmann <thomas.hartmann@qt.io>
-
- 08 Nov, 2016 1 commit
-
-
Ulf Hermann authored
QML can directly mirror this into a JavaScript object, so there is no need to manually copy the values into a different container. Also, QQmlPropertyMap is very expensive as it will listen to changes to any value in the map. We never use this. It would be entirely enough to update the whole map at once if we ever want to update the theme at runtime. Change-Id: Ie2b549e9af51d620801808c87d6f659cc7a06c04 Reviewed-by:
Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
-
- 02 Nov, 2016 1 commit
-
-
Eike Ziller authored
Split up getting the data from the arguments list and actually applying the values, and move the details of theme creation and application to better places. This gets rid of ugly control flow details like that CorePlugin::initialize created the action manager before calling parseArguments, because that is needed to apply the presentation mode argument setting, and parseArguments created the main window because that needs to be created _after_ setting the theme (which can be overridden by command line argument), but _before_ applying the override color argument setting. Change-Id: I9c99305b6efbfcc4b37cea9e5c70d816a621963b Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- 22 Jul, 2016 1 commit
-
-
Thomas Hartmann authored
There is no reason to hardcode the mapping from theming color roles to QPalette roles, since such a mapping can be easily defined in the theme itself. I added optional color roles for each QPalette role. Themes that do not change the palette do not have to take care at all and themes that change the palette define only the QPalette roles they require. Change-Id: Id195052c96117b7a1a8d7d7d6acacd44e66e22f3 Reviewed-by:
Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
-
- 05 Jul, 2016 1 commit
-
-
Lorenz Haas authored
This change allows color definitions like [Palette] a=ffff0000 b=a with some restrictions: - the name "style" results in QColor() (behavior change) - the named color must be alphabetical less than the key (due to QSettings::allKeys()) Change-Id: Idaa8569ce1e5b8502d287fd42b0ee7b75dc8b5d6 Reviewed-by:
Alessandro Portale <alessandro.portale@qt.io> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 21 Jun, 2016 1 commit
-
-
Alessandro Portale authored
Theme::widgetStyle with its two possible return values makes less sense than a bool flag. Especially since we already have several separate theme flags for ui elements which might be "flat" or not. Change-Id: Ic521bb58c04386b735b784079de05e521bc1f45f Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Alessandro Portale <alessandro.portale@qt.io>
-
- 29 Jan, 2016 1 commit
-
-
Alessandro Portale authored
The TextEditor settings do not remember a global Color Scheme setting, anymore, but rather a Color Scheme ber Theme. A .creatortheme can define a default TextEditor Color Scheme (overridable in the settings). This makes switching of schemes more pleasant. Taks-number: QTCREATORBUG-15229 Change-Id: I3bd36a4dfa23feea2254be2df50fce064e8fe2af Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by:
David Schulz <david.schulz@theqtcompany.com>
-
- 19 Jan, 2016 1 commit
-
-
Tobias Hunger authored
* Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- 14 Jan, 2016 1 commit
-
-
Alessandro Portale authored
The Theme editor is a feature which was present but disabled since the introduction of Themes. It is still unfinished and unlikely to be finished. An alternative, cheaper approch could be installing a file watcher on a theme file, and reloading it on any change. But for that we would still need proper theme switching during runtime. Change-Id: Ifd44e8c25c924a8f021618d20ce126648a3558a3 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
-
- 06 Nov, 2015 1 commit
-
-
Eike Ziller authored
Themes from the user config where not restored correctly. Improve error handling when no themes are found in case of broken installations. Cleanly differentiate between theme "id" (currently complete basename of theme file) and theme "displayName" (as specified as a property in the theme file). Remove convoluted broken code that tried to allow using an absolute file path for a theme on the command line and require themes to be installed either in Qt Creator globally or in the user settings path. In general stream line the code. Task-number: QTCREATORBUG-15113 Task-number: QTCREATORBUG-15233 Change-Id: I014a4314e8bea27422ed4c42462cf16f4220698b Reviewed-by:
Alessandro Portale <alessandro.portale@theqtcompany.com>
-
- 08 Sep, 2015 1 commit
-
-
Daniel Teske authored
Somehow a line "PreferredStyles =" is interpreted by QSettings as a QStringList with a empty string. Simply remove empty strings on reading the settings, as no style can have that name. Change-Id: If544e55f759c201d0621c71424a4ebedc8456d61 Task-number: QTCREATORBUG-15043 Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Robert Loehning <robert.loehning@theqtcompany.com>
-
- 08 Jul, 2015 1 commit
-
-
Orgad Shaneh authored
Task-number: QTCREATORBUG-14528 Change-Id: I06032491470c40cd325eb2821af71becbcdd1b8a Reviewed-by:
Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by:
Alessandro Portale <alessandro.portale@theqtcompany.com>
-
- 30 Mar, 2015 2 commits
-
-
Thorben Kroeger authored
In the dark theme (fusion style under linux), disabled menu items looked bad due to (1) SH_EtchDisabledText being enabled and (2) a bright color for the etch effect. This patch adds color values for normal and disabled text colors for menu items. It also adds a color value "style" which indicates that the color should just stay at the default of the style. The default theme uses this value for the new menu item colors, while the dark theme fixes the ugly colors. The patch also disables etching for disabled text. Task-number: QTCREATORBUG-13447 Change-Id: Ib54504693d28cf2c71f3fc5a88d3de014230b12b Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by:
Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Thorben Kroeger authored
Task-number: QTCREATORBUG-14208 Change-Id: I50f76c3cf5c755ccd139bd6cfb924beb0379f506 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 26 Mar, 2015 1 commit
-
-
Eike Ziller authored
Warn about which color value is missing, and continue reading the other values, instead of just bailing out. Task-number: QTCREATORBUG-14051 Change-Id: I028c0cccd091528b84dc8aacc23d62cb27805f3a Reviewed-by:
Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 27 Feb, 2015 1 commit
-
-
Friedemann Kleint authored
Change-Id: I60638548b2dada5211787ad2013eb65761af5717 Reviewed-by:
hjk <hjk@theqtcompany.com>
-
- 10 Feb, 2015 1 commit
-
-
Orgad Shaneh authored
Change-Id: I477a409ed231a291fb9320ce9014853a7e21274c Reviewed-by:
Alessandro Portale <alessandro.portale@theqtcompany.com>
-
- 16 Jan, 2015 1 commit
-
-
Eike Ziller authored
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 10 Dec, 2014 1 commit
-
-
Orgad Shaneh authored
That's the default. Change-Id: Icf1749868f9a659b2c8b631b3c40cbde559e9d19 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 21 Nov, 2014 1 commit
-
-
jkobus authored
We use double quotes instead of single ones. Change-Id: Ieb0024aec2053bea2a03e5ae09fb576089663ff1 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 20 Nov, 2014 2 commits
-
-
Orgad Shaneh authored
+ always set the global palette and base style on apply This is required for correctly using the selected theme with multiple installations of Qt Creator. Task-number: QTCREATORBUG-13203 Task-number: QTCREATORBUG-13396 Change-Id: I036b96721b6d184dae43d08c5e8bc9e6d1328a7b Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
Orgad Shaneh authored
Change-Id: Iea8b74534a59d8410814f9dd41225b88e1e81f75 Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- 06 Nov, 2014 1 commit
-
-
Thorben Kroeger authored
Change-Id: I48e2d03b83fccf3d6eb4b508bd77912dbdaea1d0 Reviewed-by:
Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- 22 Oct, 2014 1 commit
-
-
Orgad Shaneh authored
Change-Id: I54a7122f72e3c13c239af1b4293b187cff5b1fd2 Reviewed-by:
Thorben Kroeger <thorbenkroeger@gmail.com> Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- 17 Oct, 2014 3 commits
-
-
Alessandro Portale authored
The names for Color[Role] and Gradient[Stop] are not used consistently. This patch unfifies the naming. Change-Id: Idd06978a628427cb448a158d620bea561752750d Reviewed-by:
hjk <hjk121@nokiamail.com>
-
Alessandro Portale authored
This makes the mapping of theme values to QML automatic. Change-Id: I4442ef454dc3a7dde1bd6b068b03ff890db3e49f Reviewed-by:
hjk <hjk121@nokiamail.com>
-
Orgad Shaneh authored
Merge into theme.cpp Change-Id: I2068f224e6364a87573fe7e938d4dd8089cbaafa Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 16 Oct, 2014 1 commit
-
-
Alessandro Portale authored
A theme is supposed to provide colors, flags and images. This change removes functions from Theme which do not just return simple data. Also ManhattanStyle and Theme get separated a bit. Change-Id: I2fab26ee38b858fefb55920eb219f84abcfaac18 Reviewed-by:
hjk <hjk121@nokiamail.com>
-
- 15 Oct, 2014 2 commits
-
-
Alessandro Portale authored
Change-Id: I7d0b2a827b76a0715c8e257dd6b45e7e8b11e064 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
Thorben Kroeger authored
Adds a 'Theme' tab to the environment settings and a '-theme' command line option. A theme is a combination of colors, gradients, flags and style information. There are two themes: - 'default': preserves the current default look - 'dark': uses a more flat for many widgets, dark color theme for everything This does not use a stylesheet (too limited), but rather sets the palette via C++ and modifies drawing behavior. Overall, the look is more flat (removed some gradients and bevels). Tested on Ubuntu 14.04 using Qt 5.4 and running on a KDE Desktop (Oxygen base style). For a screenshot, see https://gist.github.com/thorbenk/5ab06bea726de0aa7473 Changes: - Introduce class Theme, defining the interface how to access theme specific settings. The class reads a .creatortheme file (INI file, via QSettings) - Define named colors in the [Palette] section (see dark.creatortheme for example usage) - Use either named colors of AARRGGBB (hex) in the [Colors] section - A file ending with .creatortheme may be supplied to the '-theme' command line option - A global Theme instance can be accessed via creatorTheme() - Query colors, gradients, icons and flags from the theme were possible (TODO: use this in more places...) - There are very many color roles. It seems better to me to describe the role clearly, and then to consolidate later in the actual theme by assigning the same color. For example, one can set the text color of the output pane button individualy. - Many elements are also drawn differently. For the dark theme, I wanted to have a flatter look. - Introduce Theme::WidgetStyle enum, for now {Original, Flat}. - The theme specifies which kind of widget style it wants. - The drawing code queries the theme's style flag and switches between the original, gradient based look and the new, flat look. - Create some custom icons which look better on dark background (wip, currently folder/file icons) - Let ManhattanStyle draw some elements for non-panelwidgets, too (open/close arrows in QTreeView, custom folder/file icons) - For the welcomescreen, pass the WelcomeTheme class. WelcomeTheme exposes theme colors as Q_PROPERTY accessible from .qml - Themes can be modified via the 'Themes' tab in the environment settings. TODO: * Unify image handling * Avoid style name references * Fix gradients Change-Id: I92c2050ab0fb327649ea1eff4adec973d2073944 Reviewed-by:
Thomas Hartmann <Thomas.Hartmann@digia.com> Reviewed-by:
hjk <hjk121@nokiamail.com>
-