Weird fonts and weird behaviour

72 views
Skip to first unread message

Carlos Baptista

unread,
Dec 20, 2013, 7:22:03 AM12/20/13
to git-...@googlegroups.com
I downloaded the newest version of git-cola: 1.9.3 for Linux. Unfortunately some fonts are looking weird. Furthermore when I push, instead of getting a pop-up requesting my user name and password, everything is directed to the terminal in which I launched git-cola. And even though the push gets through, after the push git-cola keeps on waiting indefinitely as if it is still waiting for me to input my user name and password. I have to restart git-cola after each push. What could be the matter? I attached a printscreen.

I am running:

- Chakra Linux
- KDE 4.11.3
- Qt 4.8.5
- Python 2.7.5
- git-cola 1.9.3

Carlos Baptista

unread,
Jan 9, 2014, 9:42:44 AM1/9/14
to git-...@googlegroups.com

Please help? I really like git-cola, but this way it is not working for me.

David Aguilar

unread,
Jan 9, 2014, 11:45:10 PM1/9/14
to Carlos Baptista, git-cola
On Thu, Jan 9, 2014 at 6:42 AM, Carlos Baptista <calu...@gmail.com> wrote:
>> Please help? I really like git-cola, but this way it is not working for
>> me.

Please try running out of the source tree and see if it's any different.

I'm not sure what your font issues are, but you can configure your
"diff" font in the preferences.

If what you mean by "weird fonts" is the dockwidget title labels, you
can tweak this code from cola/qtutils.py and see if it makes a
difference:

class DockTitleBarWidget(QtGui.QWidget):

def __init__(self, parent, title, stretch=True):
QtGui.QWidget.__init__(self, parent)
self.label = label = QtGui.QLabel()
font = label.font()
font.setCapitalization(QtGui.QFont.SmallCaps)
label.setFont(font)
label.setText(title)

Remove all the font lines (e.g. font.setCapitalization(...)) and it
won't use small caps in there. If you're talking about the monospace
font then change your preferences.

The app font is the one that is configured using qtconfig-qt4.
Basically, we inherit the system defaults.


RE: the password prompt. Try doing "ssh-add" before launching cola?
git-cola just does "git push" which itself respects $SSH_ASKPASS or
the $GIT_ASKPASS environment variables. Are these defined in your
environment? You probably also want a fairly modern git.

"git push" is the one that prompts and it runs the askpass program to
retrieve your password. Is password-less ssh an option? I'm assuming
you're using an ssh URL.

I'm not sure about what type of remote you're using specifically but
these should help:

https://github.com/blog/1104-credential-caching-for-wrist-friendly-git-usage

https://help.github.com/articles/set-up-git#password-caching

http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github

If you're seeing stuff in the shell then it's possible that "git push"
is actually waiting for your input there. You can verify that by
launching in the foreground and entering your password into the
terminal when you get in that state.

Nonetheless, using a credentials cache (or some other method that does
not require you to manually enter your password each time) is probably
the way to go.
--
David

Leho Kraav

unread,
May 25, 2014, 9:30:00 AM5/25/14
to git-...@googlegroups.com, Carlos Baptista
On Friday, January 10, 2014 6:45:10 AM UTC+2, David Aguilar wrote:

        font.setCapitalization(QtGui.QFont.SmallCaps)

 
This just looks plain weird on variety of configurations, font.setBold(true) is a much more consistent and a reliable UX solution here.

David Aguilar

unread,
May 25, 2014, 6:07:54 PM5/25/14
to Leho Kraav, git-...@googlegroups.com, Carlos Baptista
That's true. Using bold doesn't look too bad on configurations
where SmallCaps looks fine, so I went ahead and switched it over
to using bold everywhere instead.

https://github.com/git-cola/git-cola/commit/af1f89e17fbc99659c764cd63a78d4cbee649d19

Thanks,
--
David
Reply all
Reply to author
Forward
0 new messages