aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/stylehelper.h
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* QmlDesigner: Fix for rotation cursorAleksei German2020-11-201-0/+2
| | | | | | | | | | | - Added new icons to icon font - Uses new drawing method for rotation cursor Task: QDS-3131 Change-Id: Ifa8dda2630794694dd262396ca314a9b4e6675ad Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Enable modes/states with icon fontHenning Gruendl2020-08-031-0/+30
| | | | | | | | | Add functionality to use modes and states when generating a QIcon from a font in StyleHelper Task-number: QDS-2558 Change-Id: I764e8434a645d0984c6104cd1868fd5b0091d225 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Extend icon font supportHenning Gruendl2020-04-201-1/+2
| | | | | | | | | | | | | | | | * Use ADS::IconProvider to make use of font icons * Add support for IconProvider in FloatingWidgetTitlebar * Add support for named font icon entities in QmlDesigner::Theme * Add level of indirection to Constants.qml to be able to parse it from inside C++ * Add color and HighDPI support in stylehelper * Update RichTextEditor * Update icon font and related constants Task-number: QDS-1913 Change-Id: I7212f4dfe480dbb340fd042f59c69b8f5ca7a8e4 Reviewed-by: Aleksei German <aleksei.german@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QDS IconFont to Icons importerAleksei German2020-04-071-0/+2
| | | | | Change-Id: Idae58499cf3a3e3967e701597b0f00c16367c602 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* AutoTest: Re-use established codeChristian Stenger2020-01-081-0/+1
| | | | | | | | | Instead of "parsing", modifying and highlighting the text after it has been added use existing code to get formatted code beforehand. Change-Id: I33be2950f9b9a6910ad80b10b132089f4e5f0b1c Reviewed-by: David Schulz <david.schulz@qt.io>
* Move helper functions to more public locationChristian Stenger2019-11-151-0/+2
| | | | | Change-Id: I12a2000bfc82c194d12fb5c25302a06f782aa605 Reviewed-by: David Schulz <david.schulz@qt.io>
* Themes: Lighter toolbar bordersAlessandro Portale2016-07-211-0/+1
| | | | | | | | | | | The toolbar border/separator lines for flat themes need to be a bit lighter. This change introduces StyleHelper::toolBarBorderColor and puts it into use for drawing all toolbar borders. Change-Id: Icef20759ce282e768f6ba867474e506b9230b864 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
* Core: Improved theme-awareness in application menu paintingAlessandro Portale2016-06-211-0/+1
| | | | | | | | | | Using theme colors rather than hard-coded ones and at the same some simplification. This is needed for an upcoming "Flat Light" theme. Change-Id: I8a8715a16d1b246c5228978633143eb64d371701 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Merge remote-tracking branch 'origin/4.0'Oswald Buddenhagen2016-04-011-0/+2
|\ | | | | | | | | | | | | | | | | Conflicts: qtcreator.pri qtcreator.qbs src/plugins/debugger/debuggerruncontrol.cpp Change-Id: I81b43480a1369e3d7be60ae26e812dda6b962b0b
| * ManhattanStyle: Themable arrowsAlessandro Portale2016-03-311-0/+2
| | | | | | | | | | | | | | | | This change makes arrows in e.g. ComboBoxes themable. This also improves the clear distinction between enabled and disabled state. Change-Id: If40dcd3e162ad71d1bc6507c047203aa60e09ee6 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* | Wholesale conversion to #pragma oncehjk2016-03-301-3/+1
|/ | | | | | | Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Utils: Improved handling of StyleHelper::baseColorAlessandro Portale2016-03-211-1/+0
| | | | | | | | | | | This change makes sure that the "UI coloring" feature respects the original brightness of the current theme. It prevents dark themes from getting a too light recoloring and vice versa. Extra benefit: this allows to remove much recently introduced code. Change-Id: Ib2c96e7ed172a4cc97520aa4b5d180cc6353c661 Reviewed-by: hjk <hjk@theqtcompany.com>
* Flat Theme: Final touches for tool bar separatorsAlessandro Portale2016-03-031-1/+0
| | | | | | | | To properly support Diana's design, we need a dedicated theme color for the separator. Also, the vertical separators have a certain margin. Change-Id: I4d009342a9320848ec97f5c2d324bfb672650101 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Flat themes: Implement Diana's separatorsAlessandro Portale2016-03-021-0/+1
| | | | | | | | | | | | | | | The flat theme as defined by Diana has the motto: "Remove unnecessary lines, avoid gradients". This patch implemets that for the flat themes, while leaving the default theme unchanged. The only tweak that touches all styles is that "Styled Separator" has for consitency now the same look as standard toolbar separators. Change-Id: I80ab0d9bf5ca20ab0daa57baf5a7e095a4a0c653 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Themes: Enable UI recoloring for flat themesAlessandro Portale2016-02-181-0/+1
| | | | | Change-Id: I1907c42a769124b7505bd7afaf6c4da910f3f407 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Flat and themeable side bar iconsAlessandro Portale2015-12-031-0/+1
| | | | | | | | | | | | This patch adds flat side bar icons according to http://blog.qt.io/blog/author/didesous/ The flat icons are supposed to be opt-in, via the theme flag "FlatSideBarIcons=true". It is false by default for the default theme for now. Change-Id: I1cbe69d4e138d5d23c0172a374933ac7a4ce8a5b Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Utils: New ThemeHelper class with icon handling toolsAlessandro Portale2015-10-231-0/+2
| | | | | | | | | http://blog.qt.io/blog/author/didesous/ announced new designs/themes for Qt Creator. This patch implements the helper functions for the loading and theme-specific recoloring of icons. Change-Id: Ie6e96eeecb70dccd6b95338c653a9d3b760557cc Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* Merge remote-tracking branch 'origin/3.2'Eike Ziller2014-10-141-7/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/libs/utils/ipaddresslineedit.cpp src/libs/utils/logging.h src/plugins/analyzerbase/AnalyzerBase.pluginspec.in src/plugins/android/Android.pluginspec.in src/plugins/android/androiddeploystep.cpp src/plugins/android/androiddeploystep.h src/plugins/android/androiddeploystepfactory.cpp src/plugins/android/androiddeploystepwidget.cpp src/plugins/android/androidpackagecreationfactory.cpp src/plugins/android/androidpackagecreationstep.cpp src/plugins/android/androidpackagecreationstep.h src/plugins/android/androidpackagecreationwidget.cpp src/plugins/android/androidpackagecreationwidget.h src/plugins/android/javafilewizard.cpp src/plugins/autotoolsprojectmanager/AutotoolsProjectManager.pluginspec.in src/plugins/baremetal/BareMetal.pluginspec.in src/plugins/bazaar/Bazaar.pluginspec.in src/plugins/beautifier/Beautifier.pluginspec.in src/plugins/bineditor/BinEditor.pluginspec.in src/plugins/bookmarks/Bookmarks.pluginspec.in src/plugins/clangcodemodel/ClangCodeModel.pluginspec.in src/plugins/clangcodemodel/clanghighlightingsupport.cpp src/plugins/clangcodemodel/clangsymbolsearcher.cpp src/plugins/classview/ClassView.pluginspec.in src/plugins/clearcase/ClearCase.pluginspec.in src/plugins/cmakeprojectmanager/CMakeProjectManager.pluginspec.in src/plugins/cmakeprojectmanager/cmakeeditorfactory.cpp src/plugins/cmakeprojectmanager/cmakehighlighter.cpp src/plugins/coreplugin/Core.pluginspec.in src/plugins/cpaster/CodePaster.pluginspec.in src/plugins/cppeditor/CppEditor.pluginspec.in src/plugins/cppeditor/cppfilewizard.cpp src/plugins/cpptools/CppTools.pluginspec.in src/plugins/cpptools/cpphighlightingsupportinternal.cpp src/plugins/cpptools/cppmodelmanagerinterface.cpp src/plugins/cpptools/cppmodelmanagerinterface.h src/plugins/cvs/CVS.pluginspec.in src/plugins/debugger/Debugger.pluginspec.in src/plugins/designer/Designer.pluginspec.in src/plugins/diffeditor/DiffEditor.pluginspec.in src/plugins/emacskeys/EmacsKeys.pluginspec.in src/plugins/fakevim/FakeVim.pluginspec.in src/plugins/genericprojectmanager/GenericProjectManager.pluginspec.in src/plugins/git/Git.pluginspec.in src/plugins/git/gitorious/gitorious.cpp src/plugins/git/gitorious/gitorious.h src/plugins/git/gitorious/gitoriousclonewizard.cpp src/plugins/git/gitorious/gitorioushostwidget.cpp src/plugins/git/gitorious/gitorioushostwidget.h src/plugins/git/gitorious/gitorioushostwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwidget.cpp src/plugins/git/gitorious/gitoriousprojectwidget.h src/plugins/git/gitorious/gitoriousprojectwizardpage.cpp src/plugins/git/gitorious/gitoriousprojectwizardpage.h src/plugins/git/gitorious/gitoriousrepositorywizardpage.cpp src/plugins/git/gitorious/gitoriousrepositorywizardpage.h src/plugins/glsleditor/GLSLEditor.pluginspec.in src/plugins/glsleditor/glsleditorfactory.cpp src/plugins/glsleditor/glslfilewizard.cpp src/plugins/helloworld/HelloWorld.pluginspec.in src/plugins/help/Help.pluginspec.in src/plugins/imageviewer/ImageViewer.pluginspec.in src/plugins/ios/Ios.pluginspec.in src/plugins/macros/Macros.pluginspec.in src/plugins/mercurial/Mercurial.pluginspec.in src/plugins/perforce/Perforce.pluginspec.in src/plugins/projectexplorer/ProjectExplorer.pluginspec.in src/plugins/pythoneditor/PythonEditor.pluginspec.in src/plugins/pythoneditor/pythoneditorwidget.cpp src/plugins/pythoneditor/wizard/pythonfilewizard.cpp src/plugins/qbsprojectmanager/QbsProjectManager.pluginspec.in src/plugins/qbsprojectmanager/defaultpropertyprovider.cpp src/plugins/qmakeprojectmanager/QmakeProjectManager.pluginspec.in src/plugins/qmakeprojectmanager/profileeditorfactory.cpp src/plugins/qmldesigner/QmlDesigner.pluginspec.in src/plugins/qmljseditor/QmlJSEditor.pluginspec.in src/plugins/qmljseditor/qmljseditorfactory.cpp src/plugins/qmljstools/QmlJSTools.pluginspec.in src/plugins/qmlprofiler/QmlProfiler.pluginspec.in src/plugins/qmlprojectmanager/QmlProjectManager.pluginspec.in src/plugins/qnx/Qnx.pluginspec.in src/plugins/qtsupport/QtSupport.pluginspec.in src/plugins/remotelinux/RemoteLinux.pluginspec.in src/plugins/resourceeditor/ResourceEditor.pluginspec.in src/plugins/resourceeditor/resourcewizard.h src/plugins/subversion/Subversion.pluginspec.in src/plugins/tasklist/TaskList.pluginspec.in src/plugins/texteditor/TextEditor.pluginspec.in src/plugins/texteditor/basetexteditor_p.h src/plugins/texteditor/basetextmark.cpp src/plugins/texteditor/codeassist/basicproposalitemlistmodel.h src/plugins/texteditor/codeassist/defaultassistinterface.h src/plugins/texteditor/codeassist/iassistproposalitem.cpp src/plugins/texteditor/itexteditor.cpp src/plugins/texteditor/itexteditor.h src/plugins/texteditor/itextmark.cpp src/plugins/texteditor/plaintexteditor.cpp src/plugins/texteditor/plaintexteditor.h src/plugins/texteditor/texteditoractionhandler.cpp src/plugins/todo/Todo.pluginspec.in src/plugins/updateinfo/UpdateInfo.pluginspec.in src/plugins/valgrind/Valgrind.pluginspec.in src/plugins/vcsbase/VcsBase.pluginspec.in src/plugins/welcome/Welcome.pluginspec.in src/plugins/winrt/WinRt.pluginspec.in tests/auto/debugger/temporarydir.h Change-Id: I254af8be8119fe9855287909e17d4b8ca9d2fc2f
| * License updateEike Ziller2014-10-091-7/+8
| | | | | | | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | Utils: StyleHelper::dpiSpecificPixmap > ::dpiSpecificImageFileAlessandro Portale2014-07-241-1/+1
| | | | | | | | | | | | | | | | | | Letting that helper function return a file name is more flexible than returning a QPixmap. Change-Id: I4634e4e795eec029608c8e65c1a0e8afff870a91 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* | Utils: Helper function for dpi aware pixmap loadingAlessandro Portale2014-07-101-0/+2
|/ | | | | | | | | | QIcon can load a @2x variant of an image in case it exists and in case the devicePixelRatio is 2. In Qt Creator, we need the same functionality for loading QPixmaps. This patch adds the helper function. Change-Id: I8e50d1dabb7c8dce1347c8e0a0ce611ec102f9d3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* QmlDesigner: use a central notTooBrightHighlightColor()Tim Jenssen2014-06-111-0/+2
| | | | | Change-Id: I71988cda0f9488a59722b00e0c0c0e926a15e7f2 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
* Utils: Pass const values by referenceOrgad Shaneh2014-05-201-1/+1
| | | | | Change-Id: Iafd0f372f02f0f3759419a632e81325484861ba1 Reviewed-by: Eike Ziller <eike.ziller@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>
* Add 2x icons for retina displays.Morten Johan Sørvig2013-04-191-2/+2
| | | | | | | | | | | | | | | | This change updates the mode selector/fancyactionbar in Qt Creator with new high-resolution icons. Set Qt::AA_UseHighDpiImages on Qt 5.1 and higher to make QIcon generate high-dpi pixmaps. Add "@2x" mode images. Update StyleHelper::drawIconWithShadow to handle high-dpi pixmaps. The shadow-drawing algorithm is kept in device pixels. Change-Id: I411b7a24e534a2d75a1bbdc4d10219dcbea26bed Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Move progress indicators out of mode bar.Eike Ziller2013-04-091-0/+1
| | | | | | | | | | | | | | | This both allows the mode bar to be hidden optionally, and can give the progress information a bit more room (e.g. for titles). Progress information can either be shown in "pop up" windows in the lower left corner of the main window (hiding window contents below), or in a summary progress bar in the bottom right corner of the status bar. Hovering the summary progress bar temporarily pops up the detailed progress information. Keyboard can be used to switch between the two views. Change-Id: Ic6d6ab4fd43906e84b480c8ddf8eae5f5852e1f3 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Move status bar gradient to helper function.Eike Ziller2013-03-221-0/+1
| | | | | | Change-Id: I803f354f1efb0f3c79e7e9ee61fb50d3d5f71363 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
* Clean headers in Utils.Friedemann Kleint2013-03-191-1/+0
| | | | | | | | | | Forward-declare QGraphicsOpacityEffect in DetailsButton, QProcessEnvironment in Environment, QFileInfo in fileutils, QUrl in IWelcomePage, FancyLineEdit in PathChooser and remove unneeded headers. Change-Id: I7d5f273530dd2059bbdaf0899f0a3bc7e49e8482 Reviewed-by: hjk <hjk121@nokiamail.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.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-2/+2
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.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
* License headers.con2010-12-171-7/+11
|
* Utils: Changed crumblepath to use qpainter instead of stylesheetsLasse Holmstedt2010-08-021-0/+2
|
* Fixed the default UI colorThorbjørn Lindeijer2010-05-271-0/+2
| | | | | | | | | | | When there was no existing configuration, it would get set to pure black on startup, resulting in a very dark gray Qt Creator. Now it is back to its old friendly gray as default color. Also made sure that the default on startup and the color used for resetting the UI color in the settings are always in sync. Reviewed-by: Jens Bache-Wiig
* Make disabled icons sharper in sidebarJens Bache-Wiig2010-03-231-3/+3
| | | | | | This overrides the styles default behavior for disabled icons and simply generates their grayscale equivalent so they look a bit crisper.
* Don't cache toolbars twice. Fix flickering.Jens Bache-Wiig2010-03-191-2/+0
| | | | | | | | There was a flicker problem with the tool bars because of missing information in the cache key. We added this info and removed the redundant caching of toolbar gradients. Done-with: thorbjorn
* utils: compile fix with namespaceshjk2010-03-161-3/+2
|
* Replace reflection by generated drop shadows in sidebarJens Bache-Wiig2010-03-151-0/+7
| | | | | | | 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.
* Long live the king!hjk2010-03-051-1/+1
|
* Force custom colors within usable rangeJens Bache-Wiig2010-03-031-0/+2
| | | | | | | | | | | We previously allowed fully white and yellow colors as the base color for our interface. This does not work with our icons or other interface elements. Instead I now constrain the selectable colors within a certain range of saturation and brightness. This still leaves the user in control but will prevent the common case where the user selects an overly saturated color from the color picker and ends up with an unusable or extremely ugly panel.
* Improved styling of project target selectorJens Bache-Wiig2010-02-241-0/+3
|