提交 b43aff7c 编写于 作者: 之一Yo's avatar 之一Yo

调整编辑框的底部边框高度

上级 aa18fa8b
LineEdit, TextEdit, PlainTextEdit {
background-color: rgb(55, 55, 55);
border: 1px solid rgb(58, 58, 58);
border-bottom: 1px solid rgb(159, 159, 159);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-bottom: 1px solid rgba(255, 255, 255, 0.5442);
border-radius: 5px;
font: 14px "Segoe UI", "Microsoft YaHei";
padding: 0px 10px;
color: white;
......@@ -23,7 +23,11 @@ LineEdit:!focus, TextEdit:!focus, PlainTextEdit:!focus {
border-bottom: 1px solid rgb(159, 159, 159);
}
LineEdit:focus, TextEdit:focus, PlainTextEdit:focus {
LineEdit:focus {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
TextEdit:focus, PlainTextEdit:focus {
border-bottom: 1px solid --ThemeColorPrimary;
background-color: rgb(34, 34, 34);
}
......
......@@ -4,9 +4,9 @@ DateEdit,
DateTimeEdit,
TimeEdit {
background-color: rgb(55, 55, 55);
border: 1px solid rgb(58, 58, 58);
border-bottom: 1px solid rgb(159, 159, 159);
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-bottom: 1px solid rgba(255, 255, 255, 0.5442);
border-radius: 5px;
font: 14px "Segoe UI", "Microsoft YaHei";
padding: 0px 80px 0 10px;
color: white;
......@@ -36,7 +36,7 @@ DoubleSpinBox:focus,
DateEdit:focus,
DateTimeEdit:focus,
TimeEdit:focus{
border-bottom: 1px solid --ThemeColorPrimary;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
background-color: rgb(34, 34, 34);
}
......
......@@ -3,7 +3,7 @@ LineEdit, TextEdit, PlainTextEdit {
background-color: white;
border: 1px solid rgba(0, 0, 0, 13);
border-bottom: 1px solid rgba(0, 0, 0, 100);
border-radius: 6px;
border-radius: 5px;
font: 14px "Segoe UI", "Microsoft YaHei";
padding: 0px 10px;
selection-background-color: --ThemeColorLight1;
......@@ -25,7 +25,11 @@ LineEdit:!focus, TextEdit:!focus, PlainTextEdit:!focus {
border-bottom: 1px solid rgba(0, 0, 0, 100);
}
LineEdit:focus, TextEdit:focus,
LineEdit:focus {
border-bottom: 1px solid rgba(0, 0, 0, 13);
}
TextEdit:focus,
PlainTextEdit:focus {
border-bottom: 1px solid --ThemeColorPrimary;
background-color: white;
......
......@@ -3,7 +3,7 @@ SpinBox, DoubleSpinBox, DateEdit, DateTimeEdit, TimeEdit {
background-color: white;
border: 1px solid rgba(0, 0, 0, 13);
border-bottom: 1px solid rgba(0, 0, 0, 100);
border-radius: 6px;
border-radius: 5px;
font: 14px "Segoe UI", "Microsoft YaHei";
padding: 0px 80px 0 10px;
selection-background-color: --ThemeColorLight1;
......@@ -33,7 +33,7 @@ DoubleSpinBox:focus,
DateEdit:focus,
DateTimeEdit:focus,
TimeEdit:focus {
border-bottom: 1px solid --ThemeColorPrimary;
border-bottom: 1px solid rgba(0, 0, 0, 13);
background-color: white;
}
......
此差异已折叠。
......@@ -100,11 +100,11 @@ class LineEdit(QLineEdit):
painter.setPen(Qt.NoPen)
path = QPainterPath()
w, h = self.width() - 2, self.height()
path.addRoundedRect(QRectF(1, h-12, w, 12), 6, 6)
w, h = self.width(), self.height()
path.addRoundedRect(QRectF(0, h-10, w, 10), 5, 5)
rectPath = QPainterPath()
rectPath.addRect(1, h-12, w, 9.5)
rectPath.addRect(0, h-10, w, 8)
path = path.subtracted(rectPath)
painter.fillPath(path, themeColor())
......
......@@ -86,11 +86,11 @@ class Ui_SpinBox:
painter.setPen(Qt.NoPen)
path = QPainterPath()
w, h = self.width() - 2, self.height()
path.addRoundedRect(QRectF(1, h-12, w, 12), 6, 6)
w, h = self.width(), self.height()
path.addRoundedRect(QRectF(0, h-10, w, 10), 5, 5)
rectPath = QPainterPath()
rectPath.addRect(1, h-12, w, 9.5)
rectPath.addRect(0, h-10, w, 8)
path = path.subtracted(rectPath)
painter.fillPath(path, themeColor())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册