Loading ballontranslator/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ __appname__ = "BallonTranslator" # 1. MAJOR version when you make incompatible API changes; # 2. MINOR version when you add functionality in a backwards-compatible manner; # 3. PATCH version when you make backwards-compatible bug fixes. __version__ = "1.3.12" No newline at end of file __version__ = "1.3.13" No newline at end of file ballontranslator/__main__.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ def main(): osp.dirname(osp.abspath(__file__)) + "/data/translate", ) app.installTranslator(translator) # app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) #use highdpi icons C.LDPI = QGuiApplication.primaryScreen().logicalDotsPerInch() yahei = QFont('Microsoft YaHei UI') Loading @@ -54,6 +53,7 @@ def main(): ballontrans = MainWindow(app, open_dir=args.proj_dir) ballontrans.setWindowIcon(QIcon(C.ICON_PATH)) ballontrans.show() ballontrans.resetStyleSheet() sys.exit(app.exec()) if __name__ == '__main__': Loading ballontranslator/data/config/stylesheet.css +4 −4 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ SourceTextEdit { TransTextEdit { font-size: 17px; border-radius: 7px; background-color: whitesmoke; background-color: @transtexteditBackgroundColor; } QComboBox { Loading Loading @@ -321,13 +321,13 @@ QPushButton { /* max-width: 94px; */ height: 32px; font-size: 14px; background-color: rgba(198, 201, 207, 50%); border: 1px solid #999999; background-color: @pushBtnBackgroundColor; border: 1px solid @borderColor; border-radius: 4px; } NoBorderPushBtn { background-color: rgb(198, 201, 207); background-color: @noboderPushBtnBackgroundColor; border: none; } Loading ballontranslator/data/config/themes.json 0 → 100644 +25 −0 Original line number Diff line number Diff line { "eva-light": { "@borderColor": "#b3b6bf", "@qwidgetForegroundColor": "#5d5d5f", "@widgetBackgroundColor": "#ebeef5", "@emptyContentBackgroundColor": "#e1e4eb", "@titleBarColor": "#6d6d6f", "@pushBtnBackgroundColor": "rgba(198, 201, 207, 50%)", "@noboderPushBtnBackgroundColor": "rgb(198, 201, 207)", "@transtexteditBackgroundColor": "whitesmoke", "@sliderHandleColor" : "#555560" }, "eva-dark": { "@borderColor": "#535671", "@qwidgetForegroundColor": "#8e99b1", "@qwidgetBackgroundColor": "#282c34", "@widgetBackgroundColor": "#282c34", "@emptyContentBackgroundColor": "#21252b", "@titleBarColor": "#8e99b1", "@pushBtnBackgroundColor": "#21252b", "@noboderPushBtnBackgroundColor": "#191d24", "@transtexteditBackgroundColor": "#191d24", "@sliderHandleColor" : "#96a4cd" } } No newline at end of file ballontranslator/ui/constants.py +4 −1 Original line number Diff line number Diff line Loading @@ -44,3 +44,6 @@ PAGELIST_THUMBNAIL_MAXNUM = 100 PAGELIST_THUMBNAIL_SIZE = 48 FLAG_QT6 = False SLIDERHANDLE_COLOR = (85,85,96) FOREGROUND_FONTCOLOR = (93,93,95) No newline at end of file Loading
ballontranslator/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,4 +4,4 @@ __appname__ = "BallonTranslator" # 1. MAJOR version when you make incompatible API changes; # 2. MINOR version when you add functionality in a backwards-compatible manner; # 3. PATCH version when you make backwards-compatible bug fixes. __version__ = "1.3.12" No newline at end of file __version__ = "1.3.13" No newline at end of file
ballontranslator/__main__.py +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,6 @@ def main(): osp.dirname(osp.abspath(__file__)) + "/data/translate", ) app.installTranslator(translator) # app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) #use highdpi icons C.LDPI = QGuiApplication.primaryScreen().logicalDotsPerInch() yahei = QFont('Microsoft YaHei UI') Loading @@ -54,6 +53,7 @@ def main(): ballontrans = MainWindow(app, open_dir=args.proj_dir) ballontrans.setWindowIcon(QIcon(C.ICON_PATH)) ballontrans.show() ballontrans.resetStyleSheet() sys.exit(app.exec()) if __name__ == '__main__': Loading
ballontranslator/data/config/stylesheet.css +4 −4 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ SourceTextEdit { TransTextEdit { font-size: 17px; border-radius: 7px; background-color: whitesmoke; background-color: @transtexteditBackgroundColor; } QComboBox { Loading Loading @@ -321,13 +321,13 @@ QPushButton { /* max-width: 94px; */ height: 32px; font-size: 14px; background-color: rgba(198, 201, 207, 50%); border: 1px solid #999999; background-color: @pushBtnBackgroundColor; border: 1px solid @borderColor; border-radius: 4px; } NoBorderPushBtn { background-color: rgb(198, 201, 207); background-color: @noboderPushBtnBackgroundColor; border: none; } Loading
ballontranslator/data/config/themes.json 0 → 100644 +25 −0 Original line number Diff line number Diff line { "eva-light": { "@borderColor": "#b3b6bf", "@qwidgetForegroundColor": "#5d5d5f", "@widgetBackgroundColor": "#ebeef5", "@emptyContentBackgroundColor": "#e1e4eb", "@titleBarColor": "#6d6d6f", "@pushBtnBackgroundColor": "rgba(198, 201, 207, 50%)", "@noboderPushBtnBackgroundColor": "rgb(198, 201, 207)", "@transtexteditBackgroundColor": "whitesmoke", "@sliderHandleColor" : "#555560" }, "eva-dark": { "@borderColor": "#535671", "@qwidgetForegroundColor": "#8e99b1", "@qwidgetBackgroundColor": "#282c34", "@widgetBackgroundColor": "#282c34", "@emptyContentBackgroundColor": "#21252b", "@titleBarColor": "#8e99b1", "@pushBtnBackgroundColor": "#21252b", "@noboderPushBtnBackgroundColor": "#191d24", "@transtexteditBackgroundColor": "#191d24", "@sliderHandleColor" : "#96a4cd" } } No newline at end of file
ballontranslator/ui/constants.py +4 −1 Original line number Diff line number Diff line Loading @@ -44,3 +44,6 @@ PAGELIST_THUMBNAIL_MAXNUM = 100 PAGELIST_THUMBNAIL_SIZE = 48 FLAG_QT6 = False SLIDERHANDLE_COLOR = (85,85,96) FOREGROUND_FONTCOLOR = (93,93,95) No newline at end of file