From f1cb92900c9773e4a06b1117e35b7feadbda7500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Thu, 22 May 2025 02:26:17 +0300 Subject: [PATCH] Updated profile and voice mixer icons, better visibility and aesthetics in voice mixer --- CHANGELOG.md | 1 + abogen/assets/profile.png | Bin 241 -> 343 bytes abogen/assets/voice_mixer.png | Bin 331 -> 376 bytes abogen/voice_formula_gui.py | 22 +++++++++++++--------- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9a7a33..4d21482 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fixed voice preview player keeps playing silently at the background after preview ends. - Fixed not writing separate chapters audio when output is OPUS. - Improved input box background color handling, fixed display issues in Linux. +- Updated profile and voice mixer icons, better visibility and aesthetics in voice mixer. - Better sleep state handling for Linux. - Improvements in documentation and code. diff --git a/abogen/assets/profile.png b/abogen/assets/profile.png index 285ec1b7fa0ac0617c1081436c66dc66b7fe82de..00da9aeb794a79079cb6b26e323f425ef8f8d43f 100644 GIT binary patch delta 296 zcmV+@0oVTV0oMYMIDY{NNkl1{mpM+acXx)!9vL|vRZT@Zn>wM3Z z6e+GjoT#|~ySRo|V<>6FX6&~B-nUakzft7&D*iR? zY+}4*+W?Rq#CXY`L90*#ShG7u=%n=N(*=06`X*9B0Q(CX3qCPQC#^4l$`paL$o(x! umJ2^W1PUW=8X@Atv1agD3@P9*BG4U?lze8|Qr+nQ00001BZK0MI#rqOoiR0FRFIss<3kYXQK|oX-McCpy$u0N8WuM|O#E@%p#V vfqfF-GGnO%^tkNItJn1)f!lsKzi`wJb}fpK;lFOF00000NkvXXu0mjfMR-^) diff --git a/abogen/assets/voice_mixer.png b/abogen/assets/voice_mixer.png index 54393ff5739d4582f1b7ce0853594c7f9aa2833f..a9769c32b453498d86de3d8189ad724dc291741c 100644 GIT binary patch delta 329 zcmV-P0k;0j0{8-uIDY{uNkl$HF%{ zxQ*<>yXws3|KupZie!a=O&M>w4zAOVX(OEFikfUFWA49Qv|j-@U|ycX;NEjmfYFM~ zc`F^j(~Zn|H$o+#69IJ60UWFHwB>o|yB*#o0}Nzr2mj46?dit=<5-SLVeY607w45w bW1RW`BY=KRz#4jZ2=0ZqY=E(Lga7847Wy&Z80(3A iFStrYZ!u$fdKCwC3vRjnOY$uM0000{name}: {percentage:.1f}%', + f'{name}: {percentage:.1f}%', name, ) voice_label.setSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred) @@ -1326,10 +1324,16 @@ class VoiceFormulaDialog(QDialog): item = self.profile_list.item(i) name = item.text().lstrip("*") if self._virtual_new_profile and name == "New profile": - item.setBackground(QColor("#fff59d")) # yellow + color = QColor("#ffff00") # yellow + color.setAlpha(64) # Set transparency + item.setBackground(color) elif item.text().startswith("*"): - item.setBackground(QColor("#fff59d")) # yellow + color = QColor("#ffff00") # yellow + color.setAlpha(64) # Set transparency + item.setBackground(color) else: + item.setBackground(self.profile_list.palette().base().color()) # Use default list item background + weights = profiles.get(name, {}).get("voices", []) # Defensive: only sum if weights is a list of (voice, weight) pairs total = 0 @@ -1342,9 +1346,9 @@ class VoiceFormulaDialog(QDialog): ): total += entry[1] if total == 0: - item.setBackground(QColor("#ffcdd2")) # light red - else: - item.setBackground(QColor("white")) + color = QColor("#ff0000") # red + color.setAlpha(64) # Set transparency + item.setBackground(color) self.update_profile_save_buttons() def preview_current_mix(self):