Skip to content

Commit 25f523b

Browse files
committed
qtvcp -improve applied/default stylesheet info messages.
The default stylesheet may not be the applied sheetsheet.
1 parent 26243db commit 25f523b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/python/qtvcp/qt_makegui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def apply_styles(self, fname=None):
223223
# apply one word system theme
224224
if fname in (list(QtWidgets.QStyleFactory.keys())):
225225
QtWidgets.qApp.setStyle(fname)
226+
log.info('Applied System Style name: yellow<{}>'.format(fname))
226227
return
227228

228229
# Check for Preference file specified qss
@@ -255,6 +256,7 @@ def apply_styles(self, fname=None):
255256
# qss files aren't friendly about changing image paths
256257
qss_file = qss_file.replace('url(:/newPrefix/images', 'url({}'.format(self.PATHS.IMAGEDIR))
257258
self.setStyleSheet(qss_file)
259+
log.info('Applied Style Sheet path: yellow<{}>'.format(qssname))
258260
return
259261
except:
260262
if fname:

lib/python/qtvcp/qt_pstat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ def set_paths(self, filename='dummy', isscreen=False, INI=None):
213213
for localqss in local:
214214
LOG.debug("Checking for .qss in: yellow<{}>".format(localqss))
215215
if os.path.exists(localqss):
216-
LOG.info("Using LOCAL qss file from: yellow<{}>".format(localqss))
216+
LOG.info("Using LOCAL qss file as default stylesheet: yellow<{}>".format(localqss))
217217
self.QSS = localqss
218218
break
219219
# if no break
220220
else:
221221
LOG.debug("Checking for .qss in: yellow<{}>".format(defaultqss))
222222
if os.path.exists(defaultqss):
223-
LOG.debug("Using DEFAULT qss file from: yellow<{}>".format(defaultqss))
223+
LOG.debug("Using DEFAULT qss file as default stylesheet: yellow<{}>".format(defaultqss))
224224
self.QSS = defaultqss
225225
else:
226226
self.QSS = None

0 commit comments

Comments
 (0)