Commit 7d3ffa42 authored by dmMaze's avatar dmMaze
Browse files

fix scrollbar color for dark mode

parent c020127f
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -599,11 +599,11 @@ QScrollBar:vertical {
    margin: 0px 0px 0px 0px; /**/
    padding-top: 12px; /*距离上面12px*/
    padding-bottom: 12px; /*距离底部12px*/
    background: rgba(0, 0, 0, 30)
    background: @scrollBarBackground
}
/*横向滚动条*/
QScrollBar:horizontal {
    background: rgba(0, 0, 0, 30);
    background: @scrollBarBackground;
    height: 10px; /*高度*/
    margin: 0px 0px 0px 0px;
    padding-left: 12px; /*距离左边12px*/
@@ -612,20 +612,19 @@ QScrollBar:horizontal {

/*当鼠标放到纵向或者横向滚动条上面时*/
QScrollBar:vertical:hover,QScrollBar:horizontal:hover {
    background: rgba(0, 0, 0, 30); /*修改背景透明度 30*/
    border-radius: 5px; /*圆角*/
    background: @scrollBarColor; /*修改背景透明度 30*/
}

/*纵向滚动条上面的滑块*/
QScrollBar::handle:vertical {
    background: rgba(0, 0, 0, 50);
    background: @scrollBarColor;
    width: 10px;
    /* border-radius: 5px; */
    border: none;
}
/*横向滚动条上面的滑块*/
QScrollBar::handle:horizontal {
    background: rgba(0, 0, 0, 50);
    background: @scrollBarColor;
    height: 10px;
    /* border-radius: 5px; */
    border: none;
@@ -633,7 +632,7 @@ QScrollBar::handle:horizontal {

/*当鼠标放到滚动条滑块上面时改变透明度实现颜色的深浅变化*/
QScrollBar::handle:vertical:hover,QScrollBar::handle:horizontal:hover {
    background: rgba(0, 0, 0, 100);
    background: @scrollBarHoverColor;
}

/*纵向滚动条下部分块*/
+8 −2
Original line number Diff line number Diff line
@@ -8,7 +8,10 @@
        "@pushBtnBackgroundColor": "rgba(198, 201, 207, 50%)",
        "@noboderPushBtnBackgroundColor": "rgb(198, 201, 207)",
        "@transtexteditBackgroundColor": "whitesmoke",
        "@sliderHandleColor" : "#555560"
        "@sliderHandleColor" : "#555560",
        "@scrollBarBackground": "rgba(0, 0, 0, 30)",
        "@scrollBarColor": "rgba(0, 0, 0, 30)",
        "@scrollBarHoverColor": "rgba(0, 0, 0, 50)"
    },
    "eva-dark": {
        "@borderColor": "#535671",
@@ -20,6 +23,9 @@
        "@pushBtnBackgroundColor": "#21252b",
        "@noboderPushBtnBackgroundColor": "#191d24",
        "@transtexteditBackgroundColor": "#191d24",
        "@sliderHandleColor" : "#96a4cd"
        "@sliderHandleColor" : "#96a4cd",
        "@scrollBarBackground": "rgba(0, 0, 0, 30)",
        "@scrollBarColor": "rgba(127, 127, 127, 100)",
        "@scrollBarHoverColor": "rgba(127, 127, 127, 200)"
    }
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@ nuitka --standalone --mingw64 --show-memory --show-progress ^
    --enable-plugin=pyqt5 --include-qt-plugins=sensible,styles ^
    --nofollow-import-to=fw_qt6,numpy,urllib3,jaconv,torch,torchvision,transformers,fugashi,unidic_lite,tqdm,shapely,pyclipper,einops,termcolor,bs4,deepl,qtpy,pkuseg,pandas,spacy_pkuseg,sentencepiece,ctranslate2,python-docx,docx2txt,piexif,docx,argparse,colorama,http,email,chardet,requests,pkg_resources,yaml,PIL,multiprocessing,dbm ^
    --follow-import-to=dl,utils,ui --include-plugin-directory=ballontranslator/dl,ballontranslator/ui,ballontranslator/utils ^
    --windows-product-version=1.3.12.0 --windows-company-name=DUMMY_WINDOWS_COMPANY_NAME --windows-product-name=BallonTranslator ^
    --windows-product-version=1.3.13.0 --windows-company-name=DUMMY_WINDOWS_COMPANY_NAME --windows-product-name=BallonTranslator ^
    --output-dir=release  BallonTranslator
                
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ class TextPanel(Widget):
        self.formatpanel = FontFormatPanel(app, self)
        layout.addWidget(self.formatpanel)
        layout.addWidget(self.textEditList)
        layout.setContentsMargins(0, 0, 0, 0)
        layout.setContentsMargins(0, 0, 5, 0)
        layout.setSpacing(14)
        layout.setAlignment(Qt.AlignmentFlag.AlignCenter)