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>
No gaps. Smoother hovering. Some cleanup.
Change-Id: Id4110ab10973a7df8b5c39a90d60878145ad389b
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Adding icons for Blog, Community, Help and Sessions.
Also removing unused old icons.
Change-Id: I8f2c31ad233b852aed137e280505d26708bc9d28
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This ports the welcome screen to use QtQuick 2.0.
I have disabled the plugin on Qt4 builds.
Change-Id: Ia921d0747c8f7d4441c88fc9fb77b822496091f4
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
For some languages (e. g. russian) we have to wrap.
Task-number: QTCREATORBUG-7675
Change-Id: Ib49a2c7b11a16228010934db89c5c0e60b8e465c
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
(cherry picked from commit ed0c57ee5a)
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Being able to edit the default session does not make sense.
Change-Id: I45deee777827e9586ab2c23474f3ad0423f17f55
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Since qml can only wrap at spaces we have to wrap at file separators
manually.
Change-Id: Id853ab140a46e06fff3abf777ab3b234e749e17c
Reviewed-by: hjk <qthjk@ovi.com>
This patch replaces the context panel by extendable list items.
This does not create any visual cluttering on hover and is more
user friendly.
Change-Id: Ib9b283f6972ea7e9ae3dc3155d0c3f1c8fe2e806
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
The tooltip allows renaming, cloning and deleting and shows
included projects.
The following method was added to Session:
QStringList projectsForSessionName(const QString &session) const;
I moved the SessionNameInputDialog into the header to reuse it.
I added new roles to SessionModel (ProjectsPathRole, ProjectsDisplayRole).
The following slots were added to SessionModel to expose the backend
functionality:
void cloneSession(const QString &session);
void deleteSession(const QString &session);
void renameSession(const QString &session);
Change-Id: I0182a26dc63b4f051ea948756decd5413c832c60
Reviewed-by: hjk <qthjk@ovi.com>