1. 20 Mar, 2018 1 commit
    • Dan Torop's avatar
      gtk: turn off smooth scrolling for X11/Quartz · 47a1a1b3
      Dan Torop authored
      Try to fix reports since dt 2.4 of jittery or too fast scrolling with
      trackpad/touch on Quartz and X11. GDK_SMOOTH_SCROLL_MASK needs to be set
      for Wayland to receive trackpad/touch events, but for X11 (and
      Quartz?) these events are converted to regular scroll events if
      GDK_SMOOTH_SCROLL_MASK is not set but GDK_SCROLL_MASK is.
      
      I haven't seen bad scroll behavior for X11, but for safety's sake, am
      eliminating this for X11 too.
      
      Fixes #11974.
      
      (cherry picked from commit d30303b9)
      47a1a1b3
  2. 02 Mar, 2018 1 commit
  3. 21 Jan, 2018 4 commits
  4. 05 Jan, 2018 3 commits
    • Tobias Ellinghaus's avatar
      Add back language selection in prefs · f6f5fbdf
      Tobias Ellinghaus authored
      This somehow breaks selecting the language by setting LANG for anything
      but the C locale, at least for me. Setting LANGUAGE works, as well as
      --conf ui_last/gui_language=.
      
      TODO: On OSX we probably want to bundle the iso-codes files as we do on
      Windows.
      
      (cherry picked from commit db4ca687)
      f6f5fbdf
    • Rikard Öxler's avatar
      fix custom shortcuts with <Shift> modifier · 120bbfa7
      Rikard Öxler authored
      (cherry picked from commit 08bc1fc6)
      120bbfa7
    • Unknown's avatar
      Source comment typos · 3432f27f
      Unknown authored
      Found using `codespell -q 3 --skip="*.po,./src/external" -I ../darktable-whitelist.txt`
      where whitelist consisted of:
      ```
      cas
      childs
      ect
      eacg
      isnt
      liquify
      nd
      nonexistant
      substract
      thru
      ```
      This PR is actually split up from #1576
      .
      
      (cherry picked from commit ca07fcc0)
      3432f27f
  5. 18 Oct, 2017 2 commits
  6. 17 Oct, 2017 1 commit
  7. 12 Oct, 2017 1 commit
    • Tobias Ellinghaus's avatar
      Remove splash screen again · f6c5c801
      Tobias Ellinghaus authored
      It looked nice in the few cases where dt was slow during startup, but
      for almost everyone it was just flashing up for a split second, and the
      code was too hacky to be allowed to stay. Maybe some day we will revive
      it ...
      f6c5c801
  8. 01 Oct, 2017 1 commit
    • Tobias Ellinghaus's avatar
      Add a splash screen · a10bf8d7
      Tobias Ellinghaus authored
      This adds the dt logo as a splashscreen. It's not shown during the whole
      init phase but just until dt starts initializing GTK things because we
      have the splash screen running in a separate thread to not block init
      which however doesn't work well with how GTK handles things. So there is
      room for improvement, but at least it's now obvious that dt is doing
      _something_ when startup takes longer than normal due to giant libraries
      or similar.
      
      Should this turn out to cause problems on some systems we can still
      revert (or fix it).
      a10bf8d7
  9. 31 Aug, 2017 1 commit
  10. 14 Aug, 2017 1 commit
  11. 01 May, 2017 1 commit
    • Tobias Ellinghaus's avatar
      Reference views by name, not a number · b0fa66a7
      Tobias Ellinghaus authored
      This removes (almost) all knowledge about existing views from dt's core
      code. Instead of hardcoding the list of available views we just load
      whatever we find in the corresponding directory and allow libs to
      reference them by name. That also fixes bugs when loading a view failed
      (for example map when osmgpsmap isn't installed), resulting in wrong
      views being loaded in some cases.
      b0fa66a7
  12. 23 Mar, 2017 1 commit
    • Dan Torop's avatar
      gtk: functions to handle parsing scroll events · 7b34b62e
      Dan Torop authored
      Combine boilerplate scroll-event parsing code into a couple more
      general-purpose functions. This should be safer. Switching a
      scrollable widget from calling dt_gui_get_scroll_deltas() to
      dt_gui_get_scroll_unit_deltas() will get rid of "smooth-ness" while
      still working with Wayland.
      
      Behavior under scroll wheels should be unchanged.
      
      Make histogram events unit-scroll rather than smooth, as a many
      incoming exposure change events create a backlog and lag.
      7b34b62e
  13. 21 Mar, 2017 1 commit
    • Dan Torop's avatar
      gtk: smooth-scrollable center container · 1d6ea290
      Dan Torop authored
      Accumulate smooth scroll events (Wayland on trackpads will only send
      these) and emulate up/down motion.
      
      Not passing fractional smooth-scrolled values for now, as the center
      containers which look at scrolling will either be lighttable, which
      uses discrete up/down values, or darkroom, which has a lot of hairy
      entanglements (masks and iops) though would look better with a smooth
      scrolled zoom.
      
      The scroll accumulator is in a local static variable. An alternative
      would be to store it in dt_ui_t.
      1d6ea290
  14. 07 Mar, 2017 1 commit
  15. 16 Feb, 2017 1 commit
  16. 14 Feb, 2017 1 commit
    • Matthieu Moy's avatar
      make brush color configurable through CSS · edcfc918
      Matthieu Moy authored
      This introduces two new CSS colors: 'brush_cursor' is the color to draw
      the circle that replaces the mouse before and during drawing.
      'brush_trace' is used for the trace left behind the mouse while drawing.
      Both can be transparent using alpha(...) in the CSS file.
      edcfc918
  17. 02 Feb, 2017 1 commit
  18. 24 Jan, 2017 2 commits
    • Matthieu Moy's avatar
      Unify darktable.gui->bgcolors and colors obtained from CSS · b4d4e180
      Matthieu Moy authored
      We have a general mechanism, there's no reason to keep an array of float
      as a separate field.
      b4d4e180
    • Matthieu Moy's avatar
      background colors from CSS instead of hardcoded · 51583439
      Matthieu Moy authored
      Most of dt's UI is themeable using CSS, and it is tempting to use this
      to create a neutral grey or a white theme (see e.g.
      https://redmine.darktable.org/issues/11173). Unfortunately, a few color
      values are still hardcoded in the source code, hence a full light theme
      is only possible by patching the C files and recompiling.
      
      This patch replaces the hardcoded values with code that fetches them
      from @define-color definitions in darktable.css. For example, a neutral
      grey theme can use:
      
      @define-color darkroom_bg_color #777777;
      @define-color darkroom_preview_bg_color shade(@darkroom_bg_color, .8);
      @define-color lighttable_bg_color @darkroom_bg_color;
      @define-color lighttable_preview_bg_color shade(@lighttable_bg_color, .8);
      
      The colors are unchanged by default.
      51583439
  19. 19 Jan, 2017 1 commit
  20. 10 Jan, 2017 1 commit
  21. 06 Jan, 2017 1 commit
  22. 05 Jan, 2017 1 commit
    • peterbud's avatar
      Some cleanups, picked from PR 1327 · 724db815
      peterbud authored
      These are generic code changes not directly related to the PR's purpose,
      so let's pick them separately to make the changes to reason about less.
      724db815
  23. 03 Jan, 2017 1 commit
  24. 07 Dec, 2016 1 commit
  25. 06 Dec, 2016 1 commit
  26. 01 Dec, 2016 1 commit
  27. 24 Nov, 2016 3 commits
  28. 14 Nov, 2016 1 commit
  29. 27 Oct, 2016 1 commit
  30. 18 Oct, 2016 1 commit
  31. 05 Oct, 2016 1 commit
    • Tobias Ellinghaus's avatar
      Notify user when import/export is done · 984c3e7b
      Tobias Ellinghaus authored
      Tell the window manager to draw the user's attention to dt when an
      import of a folder or an export is finished. Those two can take a long
      time to be processed so the user might want to do something else outside
      of dt in the meantime. Instead of listening to the CPU fan slowing down
      as an indication he will now be told by his window manager/desktop
      environment. On KDE for example the entry in the taskbar is highlighted.
      984c3e7b