2022-03-29 20:28:43 +08:00
|
|
|
/*去掉item虚线边框*/
|
2022-04-04 22:34:07 +08:00
|
|
|
* {
|
|
|
|
/* background: #f3f3f3;*/
|
|
|
|
color: black ;
|
|
|
|
}
|
2022-03-29 20:28:43 +08:00
|
|
|
QListWidget, QListView, QTreeWidget, QTreeView {
|
2022-03-31 21:55:51 +08:00
|
|
|
outline-style: 0px;
|
2022-04-04 22:34:07 +08:00
|
|
|
|
|
|
|
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
|
|
|
/*设置左侧选项的最小最大宽度,文字颜色和背景颜色*/
|
|
|
|
QListWidget {
|
2022-04-04 22:34:07 +08:00
|
|
|
min-width: 300px;
|
|
|
|
max-width: 300px;
|
2022-03-29 20:28:43 +08:00
|
|
|
color: white;
|
2022-04-01 22:25:19 +08:00
|
|
|
background: #f3f3f3;
|
|
|
|
border:none;
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
|
|
|
|
2022-04-01 22:25:19 +08:00
|
|
|
/*被选中时的背景颜色和左边框颜色*/
|
|
|
|
QListWidget::item:selected {
|
|
|
|
background: #eaeaea;
|
2022-04-04 22:34:07 +08:00
|
|
|
border-left: 4px solid rgb(9, 187, 7);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*鼠标悬浮时的背景颜色*/
|
|
|
|
QListWidget::item:hover {
|
|
|
|
background: #eaeaea;
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
|
|
|
|
2022-04-01 22:25:19 +08:00
|
|
|
|
|
|
|
/*设置QListWidgetItem样式*/
|
|
|
|
QListWidget::item {
|
|
|
|
color: red;
|
2022-04-04 22:34:07 +08:00
|
|
|
font-family: black ;
|
2022-04-01 22:25:19 +08:00
|
|
|
/* border-right: 4px solid rgb(9, 187, 7);*/
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
|
|
|
|
2022-04-01 22:25:19 +08:00
|
|
|
/*QPushButton {*/
|
|
|
|
/* max-width: 120px;*/
|
|
|
|
/* color: white;*/
|
|
|
|
/* border-top-left-radius:10px; */
|
|
|
|
/* border-top-right-radius:10px;*/
|
|
|
|
/* border-bottom-left-radius:10px;*/
|
|
|
|
/* border-bottom-right-radius:10px;*/
|
|
|
|
/* background: pink;*/
|
|
|
|
/*}*/
|
|
|
|
/*QPushButton:pressed,*/
|
|
|
|
/*QPushButton:pressed:focus {*/
|
|
|
|
/* *//* 改变背景色 *//* */
|
|
|
|
/* background-color: #f50057;*/
|
|
|
|
/* *//* 改变边框风格 *//* */
|
|
|
|
/* border-style:inset; */
|
|
|
|
/* *//* 改变边框风格 *//* */
|
|
|
|
/* border-style:inset; */
|
|
|
|
/*}*/
|
|
|
|
|
|
|
|
/*QPushButton#upload_btn {*/
|
|
|
|
/* padding: 3px 20px;*/
|
|
|
|
/* text-align:center;*/
|
|
|
|
/*}*/
|
|
|
|
|
|
|
|
|
2022-03-29 20:28:43 +08:00
|
|
|
|
|
|
|
/*鼠标悬停颜色*/
|
2022-04-01 22:25:19 +08:00
|
|
|
/*HistoryPanel::item:hover {*/
|
|
|
|
/* background: rgb(52, 52, 52);*/
|
|
|
|
/*}*/
|
2022-03-29 20:28:43 +08:00
|
|
|
|
|
|
|
/*右侧的层叠窗口的背景颜色*/
|
|
|
|
QStackedWidget {
|
2022-04-01 22:25:19 +08:00
|
|
|
color:snow;
|
2022-04-04 22:34:07 +08:00
|
|
|
/* background: black;*/
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
2022-04-01 22:25:19 +08:00
|
|
|
/*todo_count_label 气泡效果*/
|
|
|
|
QLabel#todo_count_label {
|
|
|
|
/* color: black;*/
|
|
|
|
border-radius: 8px;
|
|
|
|
text-align:center;
|
|
|
|
background-color:#dcdcdc;
|
|
|
|
/* max-width:16px; max-height: 16px;*/
|
|
|
|
border:1px solid black;
|
|
|
|
font-size:10px;
|
2022-03-29 20:28:43 +08:00
|
|
|
}
|
2022-04-04 22:34:07 +08:00
|
|
|
/*设置用户名金和用户邮箱样式*/
|
|
|
|
|
|
|
|
QLabel#pic_label{
|
|
|
|
/* text-align:center;*/
|
|
|
|
background: #f3f3f3;
|
|
|
|
padding-right:25px;
|
|
|
|
}
|
|
|
|
QLabel#menu{
|
|
|
|
padding-right:10px;
|
|
|
|
}
|
|
|
|
/*主界面最下面的添加*/
|
|
|
|
QLabel#add_item_label{
|
|
|
|
text-align:right;
|
|
|
|
background:url(../images/add.png) ;
|
|
|
|
background-repeat:0;
|
|
|
|
|
|
|
|
}
|
2022-04-01 22:25:19 +08:00
|
|
|
/*QLineEdit {*/
|
|
|
|
/* border: 2px solid rgb(52,52,52);*/
|
|
|
|
/* border-top-left-radius:10px; */
|
|
|
|
/* border-top-right-radius:10px;*/
|
|
|
|
/* border-bottom-left-radius:10px;*/
|
|
|
|
/* border-bottom-right-radius:10px;*/
|
2022-03-29 20:28:43 +08:00
|
|
|
|
2022-04-04 22:34:07 +08:00
|
|
|
/*}*/
|
|
|
|
|
|
|
|
|
|
|
|
QMenu {
|
|
|
|
/* 半透明效果 */
|
|
|
|
background-color: rgba(255, 255, 255, 230);
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
QMenu::item {
|
|
|
|
border-radius: 4px;
|
|
|
|
/* 这个距离很麻烦需要根据菜单的长度和图标等因素微调 */
|
|
|
|
padding: 8px 48px 8px 36px; /* 36px是文字距离左侧距离*/
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 鼠标悬停和按下效果 */
|
|
|
|
QMenu::item:selected {
|
|
|
|
border-radius: 0px;
|
|
|
|
/* 半透明效果 */
|
|
|
|
background-color: rgba(232, 232, 232, 232);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 禁用效果 */
|
|
|
|
QMenu::item:disabled {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 图标距离左侧距离 */
|
|
|
|
QMenu::icon {
|
|
|
|
left: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 分割线效果 */
|
|
|
|
QMenu::separator {
|
|
|
|
height: 1px;
|
|
|
|
background-color: rgb(232, 236, 243);
|
|
|
|
}
|
|
|
|
|