282 lines
5.8 KiB
Text
282 lines
5.8 KiB
Text
/*去掉item虚线边框*/
|
|
/** {*/
|
|
/* background: #f3f3f3;*/
|
|
/* color: black ;*/
|
|
/*padding:0px;*/
|
|
/*margin:0px;*/
|
|
/*}*/
|
|
QListWidget, QListView, QTreeWidget, QTreeView {
|
|
outline-style: 0px;
|
|
|
|
}
|
|
/*设置左侧选项的最小最大宽度,文字颜色和背景颜色*/
|
|
QListWidget {
|
|
min-width: 300px;
|
|
max-width: 300px;
|
|
color: white;
|
|
background: #f3f3f3;
|
|
border:none;
|
|
}
|
|
|
|
/*被选中时的背景颜色和左边框颜色*/
|
|
QListWidget::item:selected {
|
|
background: #eaeaea;
|
|
border-left: 5px solid rgb(9, 187, 7);
|
|
/* border-left-width:10px;*/
|
|
}
|
|
|
|
/*鼠标悬浮时的背景颜色*/
|
|
QListWidget::item:hover {
|
|
background: #eaeaea;
|
|
}
|
|
|
|
|
|
/*设置QListWidgetItem样式*/
|
|
QListWidget::item {
|
|
color: red;
|
|
font-family: black ;
|
|
/* border-right: 4px solid rgb(9, 187, 7);*/
|
|
}
|
|
/*-------begin-------*/
|
|
|
|
QListWidget#todo_list{
|
|
min-width:700px;
|
|
min-height:520px;
|
|
/* max-height:600px;*/
|
|
border-top-left-radius:3px;
|
|
border-top-right-radius:3px;
|
|
border-bottom-left-radius:3px;
|
|
border-bottom-right-radius:3px;
|
|
background-color: rgba(211, 211, 211, 0.5);
|
|
}
|
|
/*添加Item的样式*/
|
|
QListWidget#todo_list::item{
|
|
min-height:60px;
|
|
}
|
|
|
|
/*被选中时的背景颜色和左边框颜色*/
|
|
|
|
QListWidget#todo_list::item:hover {
|
|
background: #eaeaea;
|
|
}
|
|
QListWidget#todo_list::item:selected {
|
|
background: #ffffff;
|
|
}
|
|
/*#todo_mark_icon{*/
|
|
/* max-width:30px;*/
|
|
/* border-radius:5px;*/
|
|
/*}*/
|
|
|
|
QPushButton#todo_mark_icon,#mark_important {
|
|
/* padding: 3px 20px;*/
|
|
/* text-align:center;*/
|
|
background-color:#f3f3f3;
|
|
border-radius:20px;
|
|
min-width:40px;
|
|
max-width:40px;
|
|
min-height:40px;
|
|
/* max-width:50px;*/
|
|
/* min-height:50px;*/
|
|
}
|
|
/*QPushButton#todo_mark_icon:hover {*/
|
|
/* padding: 3px 20px;*/
|
|
/* text-align:center;*/
|
|
/* background-color:#dddddd;*/
|
|
/* border-radius:15px;*/
|
|
/*}*/
|
|
QPushButton#todo_mark_icon:pressed,#mark_important:pressed {
|
|
/* padding: 3px 20px;*/
|
|
/* text-align:center;*/
|
|
background-color:#9f9f9f;
|
|
border-radius:15px;
|
|
}
|
|
|
|
/*------end------*/
|
|
|
|
QLabel#add_todo_label{
|
|
width:500px;
|
|
max-height:60px;
|
|
border-top-left-radius:3px;
|
|
border-top-right-radius:3px;
|
|
border-bottom-left-radius:3px;
|
|
border-bottom-right-radius:3px;
|
|
background-color: rgba(211, 211, 211, 0.5);
|
|
}
|
|
|
|
QLineEdit#login_line,#rename_line{
|
|
border: none;
|
|
background:transparent;
|
|
min-width:400px;
|
|
}
|
|
|
|
QLineEdit#add_line_edit {
|
|
border: none;
|
|
background:transparent;
|
|
/* border-top-left-radius:3px;*/
|
|
/* border-top-right-radius:3px;*/
|
|
/* border-bottom-left-radius:3px;*/
|
|
/* border-bottom-right-radius:3px;*/
|
|
min-width:700px;
|
|
|
|
}
|
|
QTabWidget{
|
|
border-style:inset;
|
|
}
|
|
/*QPushButton#login_button {*/
|
|
/* 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#login_button:pressed,
|
|
QPushButton#login_button:pressed:focus {
|
|
/* 改变背景色*/
|
|
background-color: #f50057;
|
|
/* 改变边框风格*/
|
|
border-style:inset;
|
|
/* 改变边框风格*/
|
|
border-style:inset;
|
|
}
|
|
|
|
/*设置堆栈按钮样式*/
|
|
QPushButton#menu_image {
|
|
/* padding: 3px 20px;*/
|
|
/* text-align:center;*/
|
|
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:#9f9f9f;
|
|
border-radius:15px;
|
|
}
|
|
|
|
|
|
|
|
|
|
/*鼠标悬停颜色*/
|
|
/*HistoryPanel::item:hover {*/
|
|
/* background: rgb(52, 52, 52);*/
|
|
/*}*/
|
|
|
|
/*右侧的层叠窗口的背景颜色*/
|
|
QStackedWidget {
|
|
color:black;
|
|
/* background: black;*/
|
|
}
|
|
/*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;
|
|
}
|
|
|
|
QLabel#user_name{
|
|
font-weight:bold;
|
|
}
|
|
/*设置用户名金和用户邮箱样式*/
|
|
|
|
QLabel#pic_label{
|
|
/* text-align:center;*/
|
|
background: #f3f3f3;
|
|
padding-right:25px;
|
|
}
|
|
QLabel#menu{
|
|
padding-right:10px;
|
|
}
|
|
/*主界面最下面的添加*/
|
|
QLabel#AddListAction::hover{
|
|
/* text-align:center;*/
|
|
background: #eaeaea;
|
|
/* padding-right:25px;*/
|
|
}
|
|
|
|
/*我的一天专门的*/
|
|
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{
|
|
min-height:150px;
|
|
margin-left: 30px;
|
|
color:white;
|
|
/* background-color:red;*/
|
|
font-weight:bold;
|
|
}
|
|
|
|
/*#my_day{*/
|
|
/* background-image:url("../images/2.jpg");*/
|
|
/* background-position: center;*/
|
|
/* border-radius: 10px;*/
|
|
/* padding-top:40px;}*/
|
|
|
|
|
|
|
|
/*隐藏按钮右侧的下拉三角*/
|
|
QPushButton::menu-indicator{ image:none;}
|
|
|
|
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);
|
|
}
|
|
|