diff --git a/convo.py b/convo.py index 777f6a6..80d4907 100644 --- a/convo.py +++ b/convo.py @@ -531,7 +531,14 @@ class PesterInput(QtWidgets.QLineEdit): super(PesterInput, self).__init__(parent) self.changeTheme(theme) def changeTheme(self, theme): - self.setStyleSheet(theme[self.stylesheet_path]) + # Explicitly set color if not already set. + # (Some platforms seem to default to white instead of black.) + + StyleSheet = theme[self.stylesheet_path] + if "color:" not in theme[self.stylesheet_path].replace(' ', ''): + StyleSheet = "color: black; " + StyleSheet + self.setStyleSheet(StyleSheet) + def focusInEvent(self, event): self.parent().clearNewMessage() self.parent().textArea.textCursor().clearSelection() diff --git a/memos.py b/memos.py index 6f81e97..a197075 100644 --- a/memos.py +++ b/memos.py @@ -386,6 +386,7 @@ class PesterMemo(PesterConvo): self.textArea = MemoText(self.mainwindow.theme, self) self.textInput = MemoInput(self.mainwindow.theme, self) + print(self.textInput) self.textInput.setFocus() self.miniUserlist = QtWidgets.QPushButton(">\n>", self) diff --git a/themes/pesterchum/style.js b/themes/pesterchum/style.js index 6938cf6..4ab5fbf 100755 --- a/themes/pesterchum/style.js +++ b/themes/pesterchum/style.js @@ -255,7 +255,7 @@ "style": "background: white; font-size: 14px;font:bold; border:2px solid #c48a00;text-align:center; margin-right:10px; margin-left:10px;font-family: 'Courier'" }, "input": { - "style": "background: white; border:2px solid #c48a00;margin-top:5px; margin-right:10px; margin-left:10px; font-size: 12px;font-family: 'Courier'" + "style": "color: black; background: white; border:2px solid #c48a00;margin-top:5px; margin-right:10px; margin-left:10px; font-size: 12px;font-family: 'Courier'" }, "tabwindow" : { "style": "background-color:#fdb302;border:0px" @@ -303,7 +303,7 @@ "minheight": 47, "maxheight": 47 }, - "input": { "style": "background: white; border:2px solid #c48a00;margin-top:5px; margin-right:10px; margin-left:10px; font-size: 12px;" }, + "input": { "style": "color: black; background: white; border:2px solid #c48a00;margin-top:5px; margin-right:10px; margin-left:10px; font-size: 12px;" }, "textarea": { "style": "background: white; font-size: 14px;font:bold; border:2px solid #c48a00;text-align:center; margin-right:10px; margin-left:10px;" }, "margins": {"top": 0, "bottom": 6, "left": 0, "right": 0 }, "userlist": { "width": 150,