Browse Source

fix:修复文件丢失的bug

master
TianZD 2 weeks ago
committed by Your Name
parent
commit
927d1f68a2
  1. 4
      NumKeyBoard.qrc
  2. 117
      commonWidget.qss
  3. 1
      keyboard.svg

4
NumKeyBoard.qrc

@ -1,6 +1,6 @@
<RCC>
<qresource prefix="/">
<file alias="commonWidget.qss">../../Res/Qss/commonWidget.qss</file>
<file alias="Images/keyboard.svg">../../Res/Images/keyboard.svg</file>
<file>commonWidget.qss</file>
<file>keyboard.svg</file>
</qresource>
</RCC>

117
commonWidget.qss

@ -0,0 +1,117 @@
QWidget {
/* Fixes #189 */
border-radius: 4px;
font-size:12pt;
color: white;
background-color: #222222;
}
QProgressBar {
background-color: #333333;
color: white;
}
QComboBox {
background-color: #444444;
border-radius: 4px;
height:30;
color: white;
}
QComboBox::disabled {
background-color: #444444;
color: gray;
}
QComboBox QAbstractItemView {
background-color: #444444;
color: white;
border-radius: 4px;
height:30;
selection-background-color: #222222; /* 选中项的背景颜色 */
selection-color: white; /* 选中项的文字颜色 */
}
QSpinBox
{
background-color : #333333;
color:white;
}
QTextEdit
{
background-color : #333333;
color:white;
}
QGroupBox {
border:1px solid #505050;
border-radius:6px;
margin-top:14px;
}
QGroupBox::title {
subcontrol-origin: margin;
left:10px;
padding:0 4px;
}
QLineEdit {
background-color: #333333;
color: white;
}
QPushButton {
background-color: #62627d;
height: 40;
width: 120;
}
QPushButton::disabled {
background-color: #333333;
color: gray;
}
QPushButton::hover {
background-color: #72627d;
color: white;
}
QLabel {
color: white;
height: 40;
}
QMenuBar{background-color:transparent;}/*设置背景色,跟随背景色*/
QMenuBar::selected{background-color:transparent;}/*设置菜单栏选中背景色*/
QMenuBar::item{background-color:#333333;font-size:12px;font-family:Microsoft YaHei;color:rgba(255,255,255,1);}/*设置菜单栏字体为白色,透明度为1(取值范围0.0-255)*/
QMenu {background-color:#333333; border:1px solid rgba(82,130,164,1);margin:2px;}
QMenu::item {min-width:50px;font-size: 12px;color: rgb(225,225,225);margin:2px;background:rgba(75,120,154,0.5);border:1px solid rgba(82,130,164,1);padding:1px 1px;margin:1px 1px;}
QMenu::item:selected {background:rgba(82,130,164,1);border:1px solid rgba(82,130,164,1);} /*选中或者说鼠标滑过状态*/
QMenu::item:pressed {background:rgba(82,130,164,0.4);border:1px solid rgba(82,130,164,1);/*摁下状态*/}
QPlainTextEdit {
background-color: #333333;
color: white;
}
QMessageBox {
background-color: #333333; /* 设置QMessageBox的背景颜色 */
}
QMessageBox QLabel {
color: white; /* 设置QMessageBox中文本(QLabel)的颜色,如果需要的话 */
}
QMessageBox QPushButton {
background-color: #62627d; /* 设置QPushButton的背景颜色,这会影响QMessageBox中的按钮 */
color: white; /* 设置QPushButton的文字颜色 */
border: none; /* 移除边框,如果需要的话 */
border-radius: 5px; /* 设置边框圆角,如果需要的话 */
}
/* 如果需要更具体地设置QMessageBox中的某个按钮,可以使用objectName或者更具体的选择器 */
/* 例如,假设你有一个objectName为"okButton"的QPushButton在QMessageBox中 */
QPushButton#okButton {
background-color: #3498db; /* 为特定的按钮设置不同的背景颜色 */
}

1
keyboard.svg

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1767660759179" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11587" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M170.666667 810.666667h682.666666V213.333333H170.666667v597.333334zM896 128a42.666667 42.666667 0 0 1 42.666667 42.666667v682.666666a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667V170.666667a42.666667 42.666667 0 0 1 42.666667-42.666667h768zM341.333333 298.666667v85.333333H256V298.666667h85.333333z m0 170.666666v85.333334H256v-85.333334h85.333333z m426.666667 170.666667v85.333333H256v-85.333333h512z m-213.333333-170.666667v85.333334h-85.333334v-85.333334h85.333334z m0-170.666666v85.333333h-85.333334V298.666667h85.333334z m213.333333 0v85.333333h-85.333333V298.666667h85.333333z m0 170.666666v85.333334h-85.333333v-85.333334h85.333333z" fill="#1296db" p-id="11588"></path></svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

Loading…
Cancel
Save