调整新主题在Linux下的显示
This commit is contained in:
parent
d31be130fb
commit
d69f727a2e
|
|
@ -19,7 +19,7 @@ ConnectionDialog::ConnectionDialog(QWidget *parent)
|
|||
{
|
||||
//Linux下默认的Qt::Dialog即使有父窗口也无法按照子窗口的行为进行展示,并且最大、最小按钮不好关闭,因此需要去掉Dialog属性,随之而来的问题是,模态无法起作用
|
||||
setWindowFlags(windowFlags() & ~Qt::Dialog);
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;background-color:rgb(30,30,30);}");
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;}");
|
||||
|
||||
m_customBorderContainer = new CustomBorderContainer(this);
|
||||
m_customBorderContainer->setOperationOptions(CustomBorderContainer::Movable | CustomBorderContainer::Resizable);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ MessageBox::MessageBox(QWidget *parent)
|
|||
{
|
||||
//Linux下默认的Qt::Dialog即使有父窗口也无法按照子窗口的行为进行展示,并且最大、最小按钮不好关闭,因此需要去掉Dialog属性,随之而来的问题是,模态无法起作用
|
||||
setWindowFlags(windowFlags() & ~Qt::Dialog);
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;background-color:rgb(30,30,30);}");
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ MessageDialog::MessageDialog(QWidget *parent)
|
|||
{
|
||||
//Linux下默认的Qt::Dialog即使有父窗口也无法按照子窗口的行为进行展示,并且最大、最小按钮不好关闭,因此需要去掉Dialog属性,随之而来的问题是,模态无法起作用
|
||||
setWindowFlags(windowFlags() & ~Qt::Dialog);
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;background-color:rgb(30,30,30);}");
|
||||
setStyleSheet("QDialog{border: 1px solid rgb(110,110,110);border-radius:5px;}");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@
|
|||
<string notr="true">QTableView
|
||||
{
|
||||
outline:0px;
|
||||
border:0px;
|
||||
}
|
||||
QTableView::item
|
||||
{
|
||||
|
|
|
|||
|
|
@ -177,17 +177,20 @@ QTabBar::tab
|
|||
border: 0px;
|
||||
padding-left:10px;
|
||||
padding-right:10px;
|
||||
margin-bottom:-1px;
|
||||
border-bottom: 1px solid rgb(50,50,50);
|
||||
}
|
||||
QTabBar::tab:selected
|
||||
{
|
||||
color:rgb(70,130,180);
|
||||
margin-bottomo:0px;
|
||||
border-bottom: 2px solid rgb(70,130,180);
|
||||
}
|
||||
|
||||
QHeaderView
|
||||
{
|
||||
background-color: rgb(30, 30, 30);
|
||||
border:0px;
|
||||
background-color: rgb(40, 40, 40);
|
||||
}
|
||||
QHeaderView::section
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue