Fixed issue with memo stylesheets (ty pyqt5 </3)
|
@ -1,6 +1,15 @@
|
|||
# Changelog
|
||||
(This document uses YYYY-MM-DD as per ISO 8601)
|
||||
|
||||
## [v2.1.1] - 2021-4-12
|
||||
|
||||
# Fixed
|
||||
- Fixed theme not getting applied correctly to memo.
|
||||
- Fixed sRGB profile in steamchum.
|
||||
|
||||
## Changed
|
||||
- convo/tabwindow on trollian seems to be used for the general background color, so, I changed it to a value. I'm not use if this was intentional.
|
||||
|
||||
## [v2.1.0] - 2021-4-11
|
||||
|
||||
### Added
|
||||
|
|
4
TODO.md
|
@ -13,3 +13,7 @@
|
|||
- Right click menu's color doesn't get updated on theme change in memos.
|
||||
- Closed windows sometimes stay open.
|
||||
- help() causes console to crash...?
|
||||
- Themes sometimes don't get applied to trollslum.
|
||||
|
||||
## ???
|
||||
- Figure out why convo/tabwindow has the effect is seems to- :/
|
4
convo.py
|
@ -595,7 +595,7 @@ class PesterConvo(QtWidgets.QFrame):
|
|||
self.mainwindow = mainwindow
|
||||
theme = self.mainwindow.theme
|
||||
self.resize(*theme["convo/size"])
|
||||
self.setStyleSheet("QFrame#%s { %s }" % (chum.handle, theme["convo/style"]))
|
||||
self.setStyleSheet("QtWidgets.QFrame#%s { %s }" % (chum.handle, theme["convo/style"]))
|
||||
self.setWindowIcon(self.icon())
|
||||
self.setWindowTitle(self.title())
|
||||
|
||||
|
@ -856,7 +856,7 @@ class PesterConvo(QtWidgets.QFrame):
|
|||
self.chumopen = o
|
||||
def changeTheme(self, theme):
|
||||
self.resize(*theme["convo/size"])
|
||||
self.setStyleSheet("QFrame#%s { %s }" % (self.chum.handle, theme["convo/style"]))
|
||||
self.setStyleSheet("QtWidgets.QFrame#%s { %s }" % (self.chum.handle, theme["convo/style"]))
|
||||
|
||||
margins = theme["convo/margins"]
|
||||
self.layout.setContentsMargins(margins["left"], margins["top"],
|
||||
|
|
5
memos.py
|
@ -588,11 +588,8 @@ class PesterMemo(PesterConvo):
|
|||
|
||||
def initTheme(self, theme):
|
||||
self.resize(*theme["memos/size"])
|
||||
#self.setStyleSheet("QFrame#%s { %s }" % (self.channel, theme["memos/style"]))
|
||||
# Kind of broken
|
||||
self.setStyleSheet(theme["memos/style"])
|
||||
self.setStyleSheet("QtWidgets.QFrame { %s };" % (theme["memos/style"]))
|
||||
self.setWindowIcon(PesterIcon(theme["memos/memoicon"]))
|
||||
|
||||
t = Template(theme["memos/label/text"])
|
||||
if self.mainwindow.advanced and hasattr(self, 'modes'):
|
||||
self.channelLabel.setText(t.safe_substitute(channel=self.channel) + "(%s)" % (self.modes))
|
||||
|
|
|
@ -69,7 +69,7 @@ def parse_raw_irc_command(element):
|
|||
try:
|
||||
command = numeric_events[command]
|
||||
except KeyError:
|
||||
logging.warn('unknown numeric event %s' % command)
|
||||
logging.info('unknown numeric event %s' % command)
|
||||
command = command.lower()
|
||||
|
||||
if args[0].startswith(':'):
|
||||
|
|
|
@ -1765,7 +1765,7 @@ class PesterWindow(MovingWindow):
|
|||
self.resize(*theme["main/size"])
|
||||
self.setWindowIcon(PesterIcon(theme["main/icon"]))
|
||||
self.setWindowTitle(theme["main/windowtitle"])
|
||||
self.setStyleSheet("QFrame#main { %s }" % (theme["main/style"]))
|
||||
self.setStyleSheet("QtWidgets.QFrame#main { %s }" % (theme["main/style"]))
|
||||
self.backgroundImage = QtGui.QPixmap(theme["main/background-image"])
|
||||
self.backgroundMask = self.backgroundImage.mask()
|
||||
self.setMask(self.backgroundMask)
|
||||
|
|
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 374 B After Width: | Height: | Size: 374 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 362 B After Width: | Height: | Size: 362 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 975 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 398 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 420 B |
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 365 B After Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 499 B |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B |
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 340 B |
|
@ -158,7 +158,7 @@
|
|||
},
|
||||
"input": { "style": "background: white; border:2px solid #ffa4a4;margin-top:5px; margin-right:10px; margin-left:10px; font-size: 12px;" },
|
||||
"tabwindow" : {
|
||||
"style": ""
|
||||
"style": "background-color: #e5000f;border:2px solid #780000;"
|
||||
},
|
||||
"text": {
|
||||
"beganpester": "began trolling",
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
_pcVersion = "Alt. v2.1.0"
|
||||
buildVersion = "v2.1.0"
|
||||
_pcVersion = "Alt. v2.1.1"
|
||||
buildVersion = "v2.1.1"
|
||||
|
|