|
|
@ -178,7 +178,7 @@ class LeftToolBarPrevailingDuration(QtWidgets.QLabel): |
|
|
|
super().__init__(self.makeText(api.D4)) |
|
|
|
self.mainWindow = mainWindow |
|
|
|
|
|
|
|
#self.setFont(constantsAndConfigs.musicFont) #TODO replace with svg |
|
|
|
self.setFont(constantsAndConfigs.musicFont) #TODO replace with svg |
|
|
|
api.callbacks.prevailingBaseDurationChanged.append(self.changed) |
|
|
|
|
|
|
|
def makeText(self, baseDuration): |
|
|
@ -188,10 +188,10 @@ class LeftToolBarPrevailingDuration(QtWidgets.QLabel): |
|
|
|
labelText = "<font size=6>" |
|
|
|
for i in (api.D1, api.D2, api.D4, api.D8, api.D16): #,api.DB, api.DL): |
|
|
|
if i == baseDuration: |
|
|
|
labelText += "<font color='cyan'>" |
|
|
|
labelText += "<font color='cyan'><b>" |
|
|
|
labelText += constantsAndConfigs.realNoteDisplay[i] |
|
|
|
if i == baseDuration: |
|
|
|
labelText += "</font>" |
|
|
|
labelText += "</b></font>" |
|
|
|
labelText += "<br>" |
|
|
|
labelText += "</font>" |
|
|
|
return labelText |
|
|
|