2022-03-29 20:28:43 +08:00
|
|
|
/*去掉item虚线边框*/
|
2022-04-07 19:34:28 +08:00
|
|
|
/** {*/
|
2022-04-04 22:34:07 +08:00
|
|
|
/* background: #f3f3f3;*/
|
2022-04-07 19:34:28 +08:00
|
|
|
/* 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-07 19:34:28 +08:00
|
|
|
border-left: 5px solid rgb(9, 187, 7);
|
|
|
|
/* border-left-width:10px;*/
|
2022-04-04 22:34:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*鼠标悬浮时的背景颜色*/
|
|
|
|
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 {*/
|
2022-04-12 21:34:18 +08:00
|
|
|
/* 改变背景色*/
|
2022-04-01 22:25:19 +08:00
|
|
|
/* background-color: #f50057;*/
|
2022-04-12 21:34:18 +08:00
|
|
|
/* 改变边框风格*/
|
|
|
|
/* border-style:inset;*/
|
|
|
|
/* 改变边框风格*/
|
|
|
|
/* border-style:inset;*/
|
2022-04-01 22:25:19 +08:00
|
|
|
/*}*/
|
|
|
|
|
2022-04-12 21:34:18 +08:00
|
|
|
/*设置堆栈按钮样式*/
|
|
|
|
QPushButton#menu_image {
|
2022-04-01 22:25:19 +08:00
|
|
|
/* padding: 3px 20px;*/
|
|
|
|
/* text-align:center;*/
|
2022-04-12 21:34:18 +08:00
|
|
|
background-color:#f3f3f3;
|
|
|
|
border-radius:15px;
|
|
|
|
}
|
|
|
|
QPushButton#menu_image:hover {
|
|
|
|
/* padding: 3px 20px;*/
|
|
|
|
/* text-align:center;*/
|
|
|
|
background-color:#dddddd;
|
|
|
|
border-radius:15px;
|
|
|
|
}
|
|
|
|
QPushButton#menu_image:pressed {
|
|
|
|
/* padding: 3px 20px;*/
|
|
|
|
/* text-align:center;*/
|
|
|
|
background-color:#d4d4d4;
|
|
|
|
border-radius:15px;
|
|
|
|
}
|
|
|
|
|
2022-04-01 22:25:19 +08:00
|
|
|
|
|
|
|
|
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-07 19:34:28 +08:00
|
|
|
color:black;
|
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;
|
|
|
|
}
|
|
|
|
/*主界面最下面的添加*/
|
2022-04-07 19:34:28 +08:00
|
|
|
QLabel#AddListAction::hover{
|
|
|
|
/* text-align:center;*/
|
|
|
|
background: #eaeaea;
|
|
|
|
/* padding-right:25px;*/
|
2022-04-04 22:34:07 +08:00
|
|
|
}
|
2022-04-12 21:34:18 +08:00
|
|
|
QLabel#title {
|
|
|
|
/* padding-top:20px;*/
|
|
|
|
font-size:32px;
|
|
|
|
color:white;
|
|
|
|
margin-left: 30px;
|
|
|
|
font-weight:bold;
|
|
|
|
}
|
|
|
|
QLabel#time_label{
|
|
|
|
color:white;
|
|
|
|
margin-left: 30px;
|
|
|
|
font-size:20px;
|
|
|
|
}
|
|
|
|
/*QWidget#head_widget{*/
|
|
|
|
/* margin:50px;*/
|
|
|
|
/* background-color:blanchedalmond;*/
|
|
|
|
/*}*/
|
|
|
|
QLabel#head_label{
|
|
|
|
/* margin: 30px;*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#my_day{
|
|
|
|
background-image:url("../images/2.jpg");
|
|
|
|
background-position: center;
|
|
|
|
border-radius: 10px;
|
|
|
|
padding-top:40px;}
|
2022-04-07 19:34:28 +08:00
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|