100 Commits
Author SHA1 Message Date
David Aguilar 04b8b3db9d icons: sharpen the dark icon set 2019-03-22 03:28:56 -07:00
David Aguilar b10ba02852 Merge remote-tracking branch 'guoyunhe/make-icons-sharp'
* guoyunhe/make-icons-sharp:
  Make icons sharp

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-21 23:36:25 -07:00
David Aguilar 6cbdded7ee utils: guard against shlex.split() exceptions
Catch ValueError exceptions in all versions of Python when calling
shlex.split().

Closes #941
Reported-by: Niel Buys <nbuys@ncomp.co.za>
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-19 20:41:55 -07:00
David Aguilar a654f295ce doc: add Niel to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-19 20:37:20 -07:00
David Aguilar fe6ef6854f hidpi: avoid QT_VERSION for PySide2
PySide2 does not provide QtCore.QT_VERSION.
Use the backend-neutral QtCore.__version__.

Closes #938
Reported-by: Mariusz Jaskółka <mar.jaskolka@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-11 21:19:15 -07:00
David Aguilar 3f4c5d2b37 hidpi: rename EChoice to Option
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 19:06:37 -07:00
David Aguilar 6e7ba5cd59 themes: make radiobuttons reactive to hidpi settings
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 17:50:14 -07:00
David Aguilar 58e3c3c0b1 themes/default: add spacing around checkboxes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 05:38:22 -07:00
David Aguilar 6ea590a117 defs: add a radio button default size
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 05:36:08 -07:00
David Aguilar 38bbb36c36 widgets: give spinboxes a better minimum width
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 05:31:50 -07:00
David Aguilar dbb8691231 prefs: merge.verbosity default is 2
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 05:28:55 -07:00
David Aguilar b2330132f5 hidpi: handle git config storing ints
The gitcfg reader will transform the EChoice strings into ints.  Make
this work by teaching the ComboBox class to transform values during
set_value().

This fixes the problem where values were not getting updated in the UI
on restart, due to the value being an int and not getting found in the
widget's data.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-10 05:28:55 -07:00
David Aguilar 60779ddcd2 themes: use only 1px for the focus border
The focus border looks better in more configuration as a nice
subtle 1px border.

Suggested-by: Mariusz Jaskółka <mar.jaskolka@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-09 01:11:31 -08:00
David Aguilar d0891a755d themes: highlight the mainwindow separator on hover
Make it easier to find the dockwidget separator by highlighting it on
hover.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-07 01:11:31 -08:00
David Aguilar 9bd14f1b4d themes: highlight focused widgets
Add a thin border around focused trees, lists, and text fields.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-07 01:10:20 -08:00
David Aguilar d9de2d88fc themes: brighten the highlight for the dark themes
Use a slightly brighter highlight color for the dark themes.  The low
contrast colors were hard to see.
2019-03-07 00:52:25 -08:00
David Aguilar 6fa8293691 Merge pull request #936 from jlusiardi/work_on_german_translation
* jlusiardi/work_on_german_translation:
  Fix some translations where the git command was wrong

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 23:42:21 -08:00
David Aguilar 08a5361827 doc: update v3.4 release notes draft for #936
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 23:41:27 -08:00
David Aguilar f2ce6de943 cmds: assignment typofix
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 23:32:44 -08:00
David Aguilar 8066566000 cmds.LaunchDifftool: fix gnome-terminal support
Newer versions of gnome-terminal (and possibly older versions too)
require the command to run to be specified as additional arguments
instead of as a single string argument.

Add a `cola.terminalshellquote` configuration variable so that users
that need to tweak this behavior for custom terminals can do so.

Fix the usage of gnome-terminal to no longer shellquote arguments when
launching in-terminal commands such as "git difftool".

Fixes #935
Reported-by: Andrew Hemming <andrew.hemming@sky.uk>
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 22:50:02 -08:00
David Aguilar 6dfa3d0ade doc: document the built-in terminal support
Related-to: #935

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 22:43:06 -08:00
David Aguilar 9ee532f962 doc: add Andrew to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 22:18:36 -08:00
David Aguilar d7529b496c i18n: update translations for the upcoming v3.4 release
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 02:41:15 -08:00
David Aguilar 3ed5acf990 prefs: make the appearance tab prettier
Use a centered label inside a simple widget instead of fighting against
the Form widget.  Move the Restart notice to the bottom of the
interface.
2019-03-06 01:33:16 -08:00
David Aguilar 6af731c6fe prefs: move appearance settings to the Appearance tab
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 01:32:24 -08:00
David Aguilar ee890cc8b7 doc: update v3.4 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 00:17:30 -08:00
David Aguilar 3c7579fa89 Merge pull request #932 from guoyunhe/patch-1
* guoyunhe/patch-1:
  Make icons sharp in HiDPI screen

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 00:14:40 -08:00
David Aguilar d4e5ab5b1a Merge pull request #934 from jlusiardi/hint_for_generating_mo_files
* jlusiardi/hint_for_generating_mo_files:
  Adds hint to regenerate the .mo file

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 00:05:42 -08:00
David Aguilar 9686655f65 doc: update v3.4 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 00:05:13 -08:00
David Aguilar 9338b9ff65 doc: add Joachim to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-06 00:05:03 -08:00
David Aguilar 7fdef9617d gravatar: guard against self.response being None
While this condition has never been spotted in the wild, let's
make sure that we have data before reading it.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-05 23:47:42 -08:00
David Aguilar b102d42e9a gravatar: cache the default pixmap bytes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-03-05 23:47:08 -08:00
David Aguilar ba734d3c04 maint: avoid elif after raise (pylint)
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-27 03:41:47 -08:00
David Aguilar d97ed92909 git: suppress gpg signatures for most commands
Avoid getting gpg output from "log" and other commands when the user has
`log.showsignature` configured to true.  Override it to false.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-27 03:00:16 -08:00
David Aguilar 81c7d0d5a0 doc: update v3.4 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-27 01:42:22 -08:00
David Aguilar c3e7ab4a21 Merge pull request #931 from javierrodriguezcuevas/feature/status_widget_options
* status_widget_options:
  prefs: reword descriptions for status indent and counts
  status: refactor headers totals
  doc: added new status options
  status: refactor option
  status: fixed code style
  status: refactor positive condition
  widget: Added indentation and total options

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-27 01:40:02 -08:00
David Aguilar aab581e207 prefs: reword descriptions for status indent and counts
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-27 01:39:11 -08:00
David Aguilar 532d960387 qtutils: simplify the styles for macOS
Use QToolButtons to create the action buttons.  This keeps the icons
small and normal looking instead of with a bunch of wasted space around
the icon.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-21 02:48:28 -08:00
David Aguilar 1a80c7b3b3 hidpi: remove unused import
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-18 00:37:54 -08:00
David Aguilar bba9b2dff9 doc: update v3.4 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-17 23:51:16 -08:00
David Aguilar dc78d6b2cc qtutils: use a simple sequence of tuples for combo_mapped()
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-17 23:47:41 -08:00
David Aguilar c1031eb4d2 hidpi: use compat.setenv and compat.unsetenv
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-17 23:47:11 -08:00
David Aguilar 3aca1f34e0 compat: simplify unsetenv()
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-17 23:46:50 -08:00
David Aguilar 954fb0a6f1 Merge pull request #930 from laerreal/sort_branches
* sort_branches:
  icons: dark theme version of a-z-order.svg and last-first-order.svg
  branch: rework the ref sorting implementation
  branch: update tooltip
  icons: alphabetize new functions from #930 and fix style
  MainView: add model's refs_sort_key to persistent state
  BranchesWidget: sort order toggle button
  icons: A-Z and last-first sort order images
  MainModel: sort key for references
  gitcmds.all_refs: arbitrary sort key

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-17 23:39:58 -08:00
David Aguilar b3d8e89161 maint: pylint fixes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-16 00:51:07 -08:00
David Aguilar ed0a536944 prefs: display the "restart required" message in a label
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-16 00:40:39 -08:00
David Aguilar b7e847a104 prefs: restore Qt4 support
Add a simple alternative to currentData() so that we can avoid
needing to strictly require Qt 5.2.

Closes #929
Related-to: #924
Reported-by: Mariusz Jaskółka <mar.jaskolka@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-16 00:26:10 -08:00
David Aguilar 4fb83cd54b themes: add docstring
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-16 00:26:07 -08:00
David Aguilar 589f78ca95 branch: rework the ref sorting implementation
Store the "ref_sort" as a simple `int` in the configuration to both
simplify the logic and to separate the configuration values from the
implementation details.

We now store a simple integer instead of the string used by git
to do the sorting.  Make the sort setting robust to values that
don't exist by internally modding the int to a known range.

Move the Cycle/Toggle behavior from the Branches widget into a
command object so that the mutation is not done directly in the
widget.

Lastly, keep the view updated via notification rather than explicitly
calling refresh() in various places.  This simplifies both the
branches widget and the main widget since it no longer needs to
be responsible for calling refresh().

Related-to: #930
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-15 23:04:36 -08:00
David Aguilar ea1fa8642b branch: update tooltip
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-15 22:04:30 -08:00
David Aguilar 4452b15137 icons: alphabetize new functions from #930 and fix style
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-15 21:42:47 -08:00
David Aguilar aa24958680 Merge pull request #924 from jm4R/themes
* jm4R/themes:
  prefs: add appearance tab with themes and DPI options
  themes: document themes and add command line option to override it
  themes: make themes a bit less distractive
  themes: code consistency fixes
  themes: add Qt stylesheets themes support
  widgets: QFrame instead of QWidget to enable margins/borders styling

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-12 23:44:02 -08:00
David Aguilar c7f522997a doc: add v3.4 release note draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-12 23:43:25 -08:00
David Aguilar 31d9321735 remote: add a margin around the push/fetch/pull dialog
Related-to: #924
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-05 00:21:12 -08:00
David Aguilar fca20522d9 doc: git-cola v3.3
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-02 16:50:04 -08:00
David Aguilar dc3aff0e0b git-cola v3.3
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-02 16:23:01 -08:00
David Aguilar 2efc773e2a doc: update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-01 23:44:04 -08:00
David Aguilar 6a882ee7b5 Merge pull request #925 from jm4R/fix_terminal_windows
* jm4R/fix_terminal_windows:
  windows: remove unnecessary exe searching when executing/forking in shell

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-02-01 23:35:51 -08:00
David Aguilar 003062462b qtpy: update vendored qtpy to v1.6
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-31 00:30:33 -08:00
David Aguilar 868534795d README.md: simplify git-xbase section 2019-01-29 02:18:01 -08:00
David Aguilar 0ed0b64e30 Merge pull request #921 from xieofxie/dag
* xieofxie/dag:
  dag: update scene rect when redraw
  dag: indicate parent better

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-24 21:51:04 -08:00
David Aguilar f74308923c doc: update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-24 21:50:46 -08:00
David Aguilar 76856a8087 Merge pull request #920 from ArthurCueio/double-click-checkout
* ArthurCueio/double-click-checkout:
  Checkout branch when double clicked.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-23 21:19:09 -08:00
David Aguilar e33ddc3c81 doc: update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-23 21:17:51 -08:00
David Aguilar 6e5cef9142 doc: add Arthur to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-23 20:56:59 -08:00
David Aguilar 75bc6302a4 doc: update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:21:02 -08:00
David Aguilar f499b33ae6 relnotes: remove duplicate link names
Use unique descriptions for each link to appease sphinx.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar 0ae20777a5 submodules: keep the view updated via notifications
Connect the submodules widget to model notifications so that it's always
up to date.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar 6be3b7484e models: add notification when submodules are updated
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar 209b98e9b6 submodules: use better icons
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar 4a588b3f3f main: improve the default layout with the new submodule widget
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar da58dada8e icons: add modified()
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:50 -08:00
David Aguilar 956b1c7868 cmds: use version.check_git(...) in OpenParent
Check the git version before attempting to use
git rev-parse --show-superproject-working-tree.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 15:06:49 -08:00
David Aguilar 8bfde88e48 version: tweak comment
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 14:10:13 -08:00
David Aguilar 862c6de5b6 Merge pull request #916 from xieofxie/submodule into master
* xieofxie/submodule:
  widgets: add submodules
  cmds: add OpenParentRepo
  main: add submodules_list
  gitcmds: add list_submodule

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-19 13:53:17 -08:00
David Aguilar 2dc1fc7517 Merge pull request #915 from 0xflotus/patch-1
* 0xflotus/patch-1:
  fixed interpreters

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:32:35 -08:00
David Aguilar bb4c2eeaed doc: add #915 to the v3.3 release notes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:32:10 -08:00
David Aguilar 0fdda987d6 Merge pull request #914 from fu7mu4/update-jp-translation
* fu7mu4/update-jp-translation:
  add translations for japanese

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:31:36 -08:00
David Aguilar f888d5c4de doc: add #914 to the v3.3 release notes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:29:37 -08:00
David Aguilar c0dc6f7c2a Merge pull request #913 from jm4R/terminal_on_windows
* jm4R/terminal_on_windows:
  windows: run git bash when open terminal action is invoked on windows

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:29:06 -08:00
David Aguilar 1edc4e7cb8 doc: add #913 to the v3.3 release notes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:25:30 -08:00
David Aguilar 80ab33f02a Merge pull request #912 from xieofxie/fix
* xieofxie/fix:
  main: show menu 'View' in OSX
  branch_test: use assertTrue(is) instead of assertEqual
  QWidget::setFocus: it receives Qt::FocusReason or void
  branch: fix right click without selection

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:19:26 -08:00
David Aguilar b7c8c97271 doc: add #912 to the v3.3 release notes
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:18:48 -08:00
David Aguilar 26af382849 doc: add missing full-stops and update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:17:51 -08:00
David Aguilar 672647e5d8 doc: add 0xflotus to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-12 22:03:10 -08:00
David Aguilar 989d930993 doc: remove empty line
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-11 00:38:20 -08:00
David Aguilar 5651ec55db doc: remove vendored sphinx_rtd_theme
The theme seems to be breakingn our readthedocs builds, so just
use the default theme.

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-11 00:32:33 -08:00
David Aguilar 53354af281 doc: update v3.3 release notes draft
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-11 00:26:29 -08:00
David Aguilar e1069effdc doc: use proper rst link syntax
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-11 00:26:20 -08:00
David Aguilar 893664455d requirements: ensure newer pytest to avoid pytest_cov travis errors
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-10 22:34:05 -08:00
David Aguilar d166f72cf3 Merge pull request #911 from jm4R/basic_sublodules
* jm4R/basic_sublodules:
  submodules: add update all submodules to cmds, action menu and toolbar
  submodules: add update specific submodule to cmds & context menu

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-10 22:13:44 -08:00
David Aguilar 6a750a91f0 doc: add Mariusz to the credits
Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-10 22:13:14 -08:00
David Aguilar d8d168c395 Merge pull request #909 from xieofxie/title
* xieofxie/title:
  update title in dag when opening a new repo

Signed-off-by: David Aguilar <davvid@gmail.com>
2019-01-03 21:23:50 -08:00
David Aguilar 75c4d42379 tox: run the makefile flake8 target 2019-01-03 21:22:29 -08:00
David Aguilar d3e9aac7f1 text: defer calls to setStyleSheet()
Older versions of Qt run into infinite loops if setStyleSheet() is
called from particular contexts, likely an event handler that triggered
a refresh (e.g. a focus change via the event filter).

This can be avoided by deferring the setStyleSheet() call so that it
happens the next time the event loop runs.

Signed-off-by: David Aguilar <davvid@gmail.com>
2018-12-16 23:13:42 -08:00
David Aguilar 8ac5687eb4 doc: document QT_AUTO_SCREEN_SCALE_FACTORS for High-DPI displays
See-also: https://doc.qt.io/qt-5/highdpi.html
Signed-off-by: David Aguilar <davvid@gmail.com>
2018-11-30 19:43:14 -08:00
David Aguilar 6fe5aea834 icons: use a better icon for "Commit"
The "Commit" action is most analogous to saving a document, so use the
document-save-symbolic icon from the adwaita icon theme.

Signed-off-by: David Aguilar <davvid@gmail.com>
2018-11-30 19:24:05 -08:00
David Aguilar 03dbb3082c commitmsg: make the Commit button look more like a button
Signed-off-by: David Aguilar <davvid@gmail.com>
2018-11-30 19:23:20 -08:00
David Aguilar a75cc1280b darwin: add NSHightResolutionCapable to Info.plist
Tell Mac OS X that we are high-resolution capable.

See-also: https://doc.qt.io/qt-5/highdpi.html
Signed-off-by: David Aguilar <davvid@gmail.com>
2018-11-30 18:45:52 -08:00
David Aguilar 91611e50e8 app: workaround broken Qt Wayland widgets in gnome-shell
Qt emits a warning when XDG_SESSION_TYPE=wayland and
XDG_CURRENT_DESKTOP=GNOME because it is currently an unsupported
configuration.

Unset XDG_SESSION_TYPE=wayland when in gnome-shell to silence
the warning.  We will need to revert this commit in the future
when [QTBUG-68619](https://bugreports.qt.io/browse/QTBUG-68619)
makes Qt Wayland widgets usable in gnome-shell.

Signed-off-by: David Aguilar <davvid@gmail.com>
2018-11-30 18:42:22 -08:00