Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0, 2.0.1, and 2.0.2

stable qtlib: add icon for active mode explicitly to avoid flickering by mouse over

Qt seems to give priority to mode than size.

Changeset c46ad970cba2

Parent 0e1beb661a93

by Yuya Nishihara

Changes to one file · Browse files at c46ad970cba2 Showing diff from parent 0e1beb661a93 Diff from another changeset...

 
272
273
274
275
 
 
276
277
278
 
272
273
274
 
275
276
277
278
279
@@ -272,7 +272,8 @@
  for size, subdir, sfx in _SCALABLE_ICON_PATHS:   path = ':/icons/%s/%s%s' % (subdir, name, sfx)   if QFile.exists(path): - o.addFile(path, size) + for mode in (QIcon.Normal, QIcon.Active): + o.addFile(path, size, mode)   if not o.isNull():   return o