1. 15 May, 2015 1 commit
  2. 08 May, 2015 1 commit
  3. 07 May, 2015 1 commit
    • Eike Ziller's avatar
      ManhattanStyle: Fix size of field in form layouts on OS X · 1b30462f
      Eike Ziller authored
      The default in QMacStyle, to use FieldsStayAtSizeHint, just almost
      always is the wrong thing to do. Additionally this goes undetected for a
      while most of the time, because most people do not run their code on OS
      X. Override it globally to AllNonFixedFieldsGrow like in other shipped
      Task-number: QTCREATORBUG-14337
      Change-Id: I3b0719c0201871fbf0163b54b1a54823bf5d14f3
      Reviewed-by: default avatarDaniel Teske <daniel.teske@theqtcompany.com>
  4. 30 Mar, 2015 1 commit
    • Thorben Kroeger's avatar
      Theming: fix disabled menu items in dark theme · e91e1a74
      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: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      Reviewed-by: default avatarThorben Kroeger <thorbenkroeger@gmail.com>
      Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
  5. 13 Feb, 2015 1 commit
  6. 06 Feb, 2015 1 commit
    • Orgad Shaneh's avatar
      Core: Remove unneeded qualifications · 428565cb
      Orgad Shaneh authored
      Mostly done using the following ruby script:
      Dir.glob('**/*.cpp').each { |file|
        next if file =~ %r{src/shared/qbs|/qmljs/}
        s = File.read(file)
        s.scan(/^using namespace (.*);$/) {
          ns = $1
          t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m|
            before = $1
            char = $2
            if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/
              before + char
          if t != s
            puts file
            File.open(file, 'w').write(t)
      Change-Id: I5c6690f51488bf8ca3610ba9fb11e6e5fd814aaa
      Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
      Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
  7. 16 Jan, 2015 1 commit
  8. 06 Jan, 2015 1 commit
  9. 23 Oct, 2014 1 commit
  10. 17 Oct, 2014 1 commit
  11. 16 Oct, 2014 2 commits
  12. 15 Oct, 2014 1 commit
    • Thorben Kroeger's avatar
      Implement theming for QtCreator · 84f5585b
      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
      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
      - Introduce class Theme, defining the interface how to access theme
        specific settings. The class reads a .creatortheme file (INI file, via
        - Define named colors in the [Palette] section
          (see dark.creatortheme for example usage)
        - Use either named colors of AARRGGBB (hex) in the [Colors]
        - 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
      - 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
      - Themes can be modified via the 'Themes' tab in the environment
      * Unify image handling
      * Avoid style name references
      * Fix gradients
      Change-Id: I92c2050ab0fb327649ea1eff4adec973d2073944
      Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
  13. 12 Oct, 2014 1 commit
  14. 09 Oct, 2014 1 commit
  15. 06 Oct, 2014 1 commit
  16. 18 Sep, 2014 1 commit
  17. 17 Sep, 2014 1 commit
  18. 11 Sep, 2014 1 commit
  19. 28 Aug, 2014 1 commit
    • Paul Olav Tvete's avatar
      Painting fix when devicePixelRatio > 1 · ea82bfb5
      Paul Olav Tvete authored
      Qt draws lines on half-pixel boundaries. Because of
      rounding, this is not visible with non-scaled aliased
      painting. However, on a high-DPI screen with scaling
      enabled, the line under the menu bar is drawn at a one
      pixel offset, which causes it to overlap the menubar items.
      This change draws the line at the mathematically correct position.
      Task-number: QTBUG-38858
      Change-Id: I0a2260507d346b52a36258d479cde87064d991ef
      Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
  20. 01 Aug, 2014 2 commits
  21. 24 Jul, 2014 1 commit
  22. 16 Jul, 2014 1 commit
  23. 15 Jul, 2014 1 commit
  24. 19 May, 2014 1 commit
  25. 08 May, 2014 1 commit
  26. 11 Apr, 2014 1 commit
  27. 08 Jan, 2014 1 commit
  28. 05 Dec, 2013 1 commit
  29. 18 Nov, 2013 1 commit
  30. 17 Jul, 2013 1 commit
  31. 27 Mar, 2013 1 commit
  32. 22 Mar, 2013 1 commit
  33. 15 Mar, 2013 1 commit
  34. 29 Jan, 2013 1 commit
  35. 08 Jan, 2013 1 commit
    • Orgad Shaneh's avatar
      Remove braces for single lines of conditions · 29a93998
      Orgad Shaneh authored
      #!/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.gsub!('} else', 'else')
            res.gsub!(/\n +} *\n/m, "\n")
            res.gsub(/ *{$/, '')
        s.gsub!(/ *$/, '')
        File.open(file, 'wb').write(s) if s != orig
      Change-Id: I3b30ee60df0986f66c02132c65fc38a3fbb6bbdc
      Reviewed-by: default avatarhjk <qthjk@ovi.com>
  36. 30 Oct, 2012 1 commit
  37. 23 Oct, 2012 1 commit
  38. 22 Oct, 2012 1 commit
    • Jens Bache-Wiig's avatar
      Revert "Disable theming of menu bar." · a7eea182
      Jens Bache-Wiig authored
      This reverts commit 7b8cd427
      This basically makes creator looks uglier on most platforms
      while not really fixing anything on Ubuntu. The menubar is
      on ubuntu (and mac) not shown in natively compiled versions
      so it effectively fixes nothing, but makes the appearance
      inconsistent on other platforms.
      Change-Id: I4576b4dcc722dca59a7480eba41ce8efa970533b
      Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>