1. 17 Oct, 2014 1 commit
  2. 16 Oct, 2014 2 commits
  3. 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
      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: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      84f5585b
  4. 12 Oct, 2014 1 commit
  5. 09 Oct, 2014 1 commit
  6. 06 Oct, 2014 1 commit
  7. 18 Sep, 2014 1 commit
  8. 17 Sep, 2014 1 commit
  9. 11 Sep, 2014 1 commit
  10. 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>
      ea82bfb5
  11. 01 Aug, 2014 2 commits
  12. 24 Jul, 2014 1 commit
  13. 16 Jul, 2014 1 commit
  14. 15 Jul, 2014 1 commit
  15. 19 May, 2014 1 commit
  16. 08 May, 2014 1 commit
  17. 11 Apr, 2014 1 commit
  18. 08 Jan, 2014 1 commit
  19. 05 Dec, 2013 1 commit
  20. 18 Nov, 2013 1 commit
  21. 17 Jul, 2013 1 commit
  22. 27 Mar, 2013 1 commit
  23. 22 Mar, 2013 1 commit
  24. 15 Mar, 2013 1 commit
  25. 29 Jan, 2013 1 commit
  26. 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
          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: default avatarhjk <qthjk@ovi.com>
      29a93998
  27. 30 Oct, 2012 1 commit
  28. 23 Oct, 2012 1 commit
  29. 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>
      a7eea182
  30. 05 Oct, 2012 1 commit
  31. 25 Jul, 2012 1 commit
  32. 19 Jul, 2012 2 commits
  33. 21 May, 2012 1 commit
  34. 15 Feb, 2012 1 commit
  35. 26 Jan, 2012 2 commits
  36. 12 Dec, 2011 1 commit