QSS 蓝色渐变

10 篇文章 0 订阅
#界面美化
    qssStyle = """
        QMainWindow {
            border: 1px solid #89ADBB;
            background-color: qlineargradient(x1: 0, y1: 0, x2: 2, y2: 1,
                stop: 0 #64D8DE, stop: 1 #7A64EB);
        }

        QPushButton {
            border: 3px solid rgba(0,128,192,80%);
            border-radius: 5px;
            background-color:rgba(0,128,192,80%);
            border-style: outset;
        }
        QPushButton:pressed {
            border-style: inset;
            }
        QComboBox {
            border: 2px solid #87B2D5;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 80%);
        }
        QTextBrowser{
            border: 2px solid #87B2D5;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 80%);
        }
        QLineEdit {
            border: 2px solid #87B2D5;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 80%);
        }
        QProgressBar {
            border: 1px solid #87B2D5;
            border-radius: 5px;
            text-align: center;
            width: 10px;
            background-color: rgba(228, 248, 255, 30%);
            border-style: outset;
        }
        QProgressBar::chunk {
            background-color: rgba(191, 255, 92, 70%);
            border-radius: 5px;
        }
        QGroupBox {
            border-color: #C2CEE5;
            border-width: 1px;
            border-style: solid;
            margin-top: 2ex;
        }
        QGroupBox::title {
            subcontrol-origin: margin;
            subcontrol-position: top left;
            left: 10px;
            margin-left: 2px;
            padding: 0px;
        }

    """

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值