From 58b9651ff36e0a292d31962cdaa79c897ce0f7a8 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 21 Oct 2025 11:49:31 -0700 Subject: [PATCH] add colorsoft warning (#1131) --- kindlecomicconverter/KCC_gui.py | 8 +++++++- kindlecomicconverter/image.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index c7ce800..3515f5f 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -831,6 +831,12 @@ class KCCGUI(KCC_ui.Ui_mainWindow): else: if not GUI.webtoonBox.isChecked(): GUI.upscaleBox.setEnabled(True) + if profile['Label'] == 'KCS': + current_format = GUI.formats[str(GUI.formatBox.currentText())]['format'] + for bad_format in ('MOBI', 'EPUB'): + if bad_format in current_format: + self.addMessage('Colorsoft MOBI/EPUB can have blank pages. Just go back a few pages, exit, and reenter book.', 'info') + break if not profile['PVOptions']: GUI.qualityBox.setChecked(False) if str(GUI.deviceBox.currentText()) == 'Other': @@ -1150,7 +1156,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow): 'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': True, 'ForceColor': False, 'Label': 'KO', }, "Kindle Colorsoft": { - 'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': True, 'ForceColor': True, 'Label': 'KO', + 'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': True, 'ForceColor': True, 'Label': 'KCS', }, "Kindle Paperwhite 7/10": {'PVOptions': True, 'ForceExpert': False, 'DefaultFormat': 0, 'DefaultUpscale': True, 'ForceColor': False, 'Label': 'KPW34'}, diff --git a/kindlecomicconverter/image.py b/kindlecomicconverter/image.py index 0eda328..1075998 100755 --- a/kindlecomicconverter/image.py +++ b/kindlecomicconverter/image.py @@ -97,10 +97,11 @@ class ProfileData: ProfilesKindlePDOC = { 'KPW34': ("Kindle Paperwhite 3/4/Oasis", (1072, 1448), Palette16, 1.0), 'K810': ("Kindle 8/10", (600, 800), Palette16, 1.0), - 'KO': ("Kindle Oasis 2/3/Paperwhite 12/Colorsoft 12", (1264, 1680), Palette16, 1.0), + 'KO': ("Kindle Oasis 2/3/Paperwhite 12", (1264, 1680), Palette16, 1.0), 'K11': ("Kindle 11", (1072, 1448), Palette16, 1.0), 'KPW5': ("Kindle Paperwhite 5/Signature Edition", (1236, 1648), Palette16, 1.0), 'KS': ("Kindle Scribe", (1860, 2480), Palette16, 1.0), + 'KCS': ("Kindle Colorsoft", (1264, 1680), Palette16, 1.0), } ProfilesKindle = {