summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/fancyactionbar.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Implement theming for QtCreatorThorben Kroeger2014-10-151-22/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Utils: Cleanup of Tooltip interfacehjk2013-09-131-3/+7
| | | | | Change-Id: If4908e7a5d5ce749ff1e2efc7a026604821737be Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
* FancyToolButton: remove forceVisibleDaniel Teske2013-06-201-11/+2
| | | | | | | It's never used Change-Id: Ia2e7ab19685066daf29b5209cb7ea2a7485dfcf2 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* FancyToolButton::paintEvent remmove unused variablesDaniel Teske2013-06-201-2/+0
| | | | | Change-Id: I5eb7fa9d1efc06292ee22e9db195204e37f3aa4b Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Clean headers in Core-plugin.Friedemann Kleint2013-03-271-8/+0
| | | | | Change-Id: Ie79d334765ca5c6a034fa2f5eccff5d45b481975 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Core: Remove unneeded ifdefs.Christian Kandeler2013-03-151-5/+5
| | | | | | | Replace compile-time checks for host OS by run-time checks. Change-Id: I9f237389171586786c2609f81314bcb1bc17b01e Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Merge remote-tracking branch 'origin/2.6'Oswald Buddenhagen2013-01-311-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/debugger/qtmessageloghandler.cpp src/plugins/debugger/qtmessagelogwindow.cpp src/plugins/madde/maemodeployconfigurationwidget.cpp src/plugins/qmldesigner/components/integration/designdocumentcontroller.cpp src/plugins/qmldesigner/designercore/include/widgetqueryview.h src/plugins/qmldesigner/designercore/metainfo/metainfoparser.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.cpp src/plugins/qmldesigner/designercore/model/modelnodecontextmenu.h src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qnx/bardescriptormagicmatcher.h src/plugins/qt4projectmanager/profilekeywords.cpp src/plugins/remotelinux/deployablefilesperprofile.cpp src/plugins/remotelinux/deployablefilesperprofile.h src/plugins/remotelinux/deploymentinfo.cpp src/plugins/remotelinux/deploymentsettingsassistant.cpp src/plugins/remotelinux/profilesupdatedialog.cpp tests/auto/icheckbuild/ichecklib.cpp tests/auto/icheckbuild/parsemanager.cpp tests/auto/icheckbuild/parsemanager.h Change-Id: Ie465a578446a089e1c502d1cb1096e84ca058104
| * Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | | | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | MiniTargetSelector: If the project's displayname is non unique show pathDaniel Teske2013-01-111-0/+8
| | | | | | | | | | | | Task-number: QTCREATORBUG-8329 Change-Id: Ia256c09a634ff4794b67007e5013680a8a740201 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
* | Remove braces for single lines of conditionsOrgad Shaneh2013-01-081-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #!/usr/bin/env ruby Dir.glob('**/*.cpp') { |file| # skip ast (excluding paste, astpath, and canv'ast'imer) next if file =~ /ast[^eip]|keywords\.|qualifiers|preprocessor|names.cpp/i s = File.read(file) next if s.include?('qlalr') orig = s.dup s.gsub!(/\n *if [^\n]*{\n[^\n]*\n\s+}(\s+else if [^\n]* {\n[^\n]*\n\s+})*(\s+else {\n[^\n]*\n\s+})?\n/m) { |m| res = $& if res =~ /^\s*(\/\/|[A-Z_]{3,})/ # C++ comment or macro (Q_UNUSED, SDEBUG), do not touch braces res else res.gsub!('} else', 'else') res.gsub!(/\n +} *\n/m, "\n") res.gsub(/ *{$/, '') end } s.gsub!(/ *$/, '') File.open(file, 'wb').write(s) if s != orig } Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc Reviewed-by: hjk <qthjk@ovi.com>
* | Add whitespace after control keywordsOrgad Shaneh2012-11-281-1/+1
|/ | | | | | | | find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-14/+14
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Ensure consistent size of facnyactionbar buttonDaniel Teske2012-01-311-6/+3
| | | | | | | Otherwise the button can jump on switching projects. Change-Id: I2b6d0a5afe5fc54933fe31d381a312cce896361e Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Fix non-needed usage of QString's fromLocal8Bit() and fromUtf8()Denis Mingulov2012-01-301-1/+1
| | | | | | | | | | | | | | | | QString::fromLocal8Bit() and QString::fromUtf8() are much more slower than an obvious QString::fromLatin1() and QLatin1String(), so this commit changes some places where these functions are really not needed. QString::fromLatin1() is used in case if QString object is used immediately (something like QString::fromLatin1().arg()), QLatin1String is used otherwise like in other places (for example, QPixmap(QLatin1String("..."))) - to allow to use default QString constructor and work with QT_NO_CAST_FROM_ASCII. Change-Id: Ib6eb1c61e9cb35c7c5b7569fea77c5e41d32621a Reviewed-by: hjk <qthjk@ovi.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* Replace Q_WS_MAC with Q_OS_MAC.Morten Johan Sorvig2012-01-261-1/+1
| | | | | | | | | | | | | | | We want to carry over all mac-specific code paths to Qt 5. WS_MAC is no longer set; OS_MAC is. This change is compatible with Qt 4 builds since OS_MAC is set whenever WS_MAC is. (OS_MAC would also be set for the theoretical X11/Mac platform, but that's anyway not a supported configuration for Creator) Change-Id: Ib25d8c4e83e7e27d911124cd48aa17fdb875923f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Make build configuration on target selector a two line labelEike Ziller2011-11-151-11/+75
| | | | | Change-Id: I9d8a21fbedf07e81f17cbb21405c2b6e7f0c161c Reviewed-by: hjk <qthjk@ovi.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Update license.hjk2011-04-131-14/+13
|
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* Merge branch '2.1'con2010-12-171-7/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/coreplugin/basemode.cpp src/plugins/coreplugin/basemode.h src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.cpp src/plugins/coreplugin/scriptmanager/qworkbench_wrapper.h src/plugins/debugger/cdb/cdbsymbolpathlisteditor.cpp src/plugins/debugger/debuggeragents.cpp src/plugins/debugger/debuggeruiswitcher.cpp src/plugins/debugger/debuggeruiswitcher.h src/plugins/projectexplorer/buildconfigdialog.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.cpp src/plugins/qmldesigner/components/propertyeditor/colorwidget.h src/plugins/qmldesigner/designercore/include/enumeratormetainfo.h src/plugins/qmldesigner/designercore/include/modelutilities.h src/plugins/qmldesigner/designercore/include/nodeinstance.h src/plugins/qmldesigner/designercore/include/propertymetainfo.h src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicsscenenodeinstance.h src/plugins/qmldesigner/designercore/instances/graphicsviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/graphicswidgetnodeinstance.h src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp src/plugins/qmldesigner/designercore/instances/qmlviewnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.cpp src/plugins/qmldesigner/designercore/instances/widgetnodeinstance.h src/plugins/qmldesigner/designercore/metainfo/enumeratormetainfo.cpp src/plugins/qmldesigner/designercore/metainfo/propertymetainfo.cpp src/plugins/qmldesigner/designercore/model/modelutilities.cpp src/plugins/snippets/inputwidget.cpp src/plugins/snippets/snippetscompletion.cpp src/plugins/snippets/snippetscompletion.h src/plugins/snippets/snippetspec.cpp src/plugins/snippets/snippetsplugin.cpp src/plugins/snippets/snippetswindow.cpp src/plugins/snippets/snippetswindow.h src/plugins/texteditor/snippetsparser.cpp src/tools/qml/qmldom/main.cpp tests/manual/trk/runner.cpp tests/manual/trk/trkolddevice.cpp tests/manual/trk/trkolddevice.h tests/manual/trk/trkserver.cpp
| * License headers.con2010-12-171-7/+11
| |
* | Fix exported headers in Core and TextEditor.Friedemann Kleint2010-11-011-1/+0
|/ | | | | | | | | | | - Unexport Core::Internal::MainWindow and remove its includes. - Move RssFetcher from Core::Internal to Core. - Unexport CopyTaskHandler. - Move TextEditor's completion support and Refactor Overlay helper classes from TextEditor::Internal to TextEditor as they are exported. - Move internal BaseTextBlockSelection into private header. - Unexport TextEditorOverlay as they are not used.
* Fix some layout issues with the sidebarJens Bache-Wiig2010-04-141-2/+3
| | | | | | | * Minimum width now depends on translated strings * Missing margin for target name added Task-number: QTCREATORBUG-468
* Less includesdt2010-04-071-1/+0
|
* Fix resizing of actionbarJens Bache-Wiig2010-03-311-1/+7
| | | | | We no longer allow it to collapse below it's size hint. I also reduced the bottom margin.
* Have your debug button backmae2010-03-301-52/+0
|
* Make disabled icons sharper in sidebarJens Bache-Wiig2010-03-231-14/+12
| | | | | | This overrides the styles default behavior for disabled icons and simply generates their grayscale equivalent so they look a bit crisper.
* Improve icon and label behavior for target selectorJens Bache-Wiig2010-03-191-3/+3
| | | | | | I modified the text margins, removed the inconsistent "No project" label and made sure we fall back to the default computer icon when no project is open.
* On Mac, toggle run/debug with the open button (Qt::Key_Alt)mae2010-03-181-8/+39
|
* Replace reflection by generated drop shadows in sidebarJens Bache-Wiig2010-03-151-2/+3
| | | | | | | The sidebar is a diffuse surface. Hence the reflection does not really make sense there. Additionally, this allows us to get more unified spacing and we can apply the same shadow to system icons.
* Fix size and height of the sidebar project selector iconJens Bache-Wiig2010-03-121-13/+31
| | | | | This makes the positioning of text and icon adjust if the text labels are empty.
* Some tuning of the fancy action barmae2010-03-121-4/+13
| | | | Done-with: jbache
* Do not rely on Qt's smartness for flicker avoidancemae2010-03-121-0/+2
|
* Make the run and debug buttons in the FancyActionBar mutual exclusivemae2010-03-121-1/+24
| | | | | Debug is now only available in debug mode, run is available in all other modes.
* Make action icons biggerJens Bache-Wiig2010-03-111-2/+2
| | | | | As suggested by Nigel and others, we should use the same icon size for all the icons.
* Long live the king!hjk2010-03-051-1/+1
|
* Improve sidebar readability on macJens Bache-Wiig2010-02-261-1/+1
| | | | | Slightly increased the font size. Added a bit more shadow and tweaked the progress bar.
* Fix an icon centering problem on the actionbarJens Bache-Wiig2010-02-241-3/+2
| | | | | | | | The actualPixmapSize is different from the resulting pixmap when using svg icons. This seems to be a bug in Qt, but using the resulting pixmap is safe for now.
* Improved styling of project target selectorJens Bache-Wiig2010-02-241-0/+1
|
* Mor polish for the sidebarJens Bache-Wiig2010-02-221-2/+1
|
* Make the panel action sunken when panel is openJens Bache-Wiig2010-02-221-1/+1
|
* Updated hover and pressed appearance for sidebarJens Bache-Wiig2010-02-221-35/+25
|
* Color tweaksJens Bache-Wiig2010-02-221-2/+2
|
* Animate sidebar tabs independentlyJens Bache-Wiig2010-02-221-7/+7
|