Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar widget is very slow to show and hide, can you improve it #840

Open
Khanhlinhdang opened this issue Apr 12, 2024 · 2 comments
Open

Comments

@Khanhlinhdang
Copy link

image

@Khanhlinhdang
Copy link
Author

Thank you bro!

@Khanhlinhdang
Copy link
Author

image
i use this stylesheet for darktheme, it is very fast
you can setup it like a custom components,

QWidget {
background-color: #2b2b2b;
color:#eaeaea;
border: solid;
border-width: 0.5px;
border-color: transparent;
border-radius: 5px;

}

QCalendarWidget QToolButton
{
height:40px;
width:50px;
color:white;
font:18px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
icon-size:25px 25px;
background-color:#2b2b2b;
}
QCalendarWidget QToolButton:hover
{
background-color:#202020;
}

QCalendarWidget QWidget#qt_calendar_navigationbar
{
height:40px;
background-color:#2b2b2b;

}

#qt_calendar_monthbutton
{
width:100px;
font:18px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
color:white;
background-color:#2b2b2b;
margin: 0px 2px;
padding: 0px 2px

}

#qt_calendar_yearbutton
{
font:18px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
color:white;
background-color:#2b2b2b;
margin: 0px 2px;
padding: 0px 2px

}

#qt_calendar_monthbutton:hover,
#qt_calendar_yearbutton:hover
{
background-color:#202020;
}

/* MenuBar Code */

QCalendarWidget QMenu
{
width:150px;
color:white;
font:14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
background-color:#2b2b2b;
}

/* SpinBox Code */

/* Calendar View Code */
QCalendarWidget QWidget
{
alternate-background-color:#2b2b2b;
}

QCalendarWidget QAbstractItemView:enabled
{
font:14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
color:white;
background-color:#2b2b2b;
selection-background-color:#202020;
selection-color:white;
}
QCalendarWidget QAbstractItemView:disabled
{
color:rgb(100,100,100);
}

QCalendarWidget QSpinBox
{
width:60px;
height:25px;
font:14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
color:white;
background-color:#2b2b2b;
}

#qt_calendar_calendarview
{
font:14px 'Segoe UI', 'Microsoft YaHei', 'PingFang SC';
color:white;
background-color:#202020;
border: solid;
border-width: 0.5px;
border-color: #2b2b2b;
border-radius:5px;
}

#qt_calendar_calendarview::item
{
width:25px;
height:25px;
background-color:#2b2b2b;
border: solid;
border-width: 1px;
border-color: #2b2b2b;
border-radius:15px;
padding: 2px 2px 2px 2px
}

#qt_calendar_calendarview::item:hover
{
width:25px;
height:25px;
background-color:black;
border: solid;
border-width: 1px;
border-color: black;
border-radius:15px;
padding: 2px 2px 2px 2px
}

#qt_calendar_calendarview::item:selected
{
width:25px;
height:25px;
background-color:black;
border: solid;
border-width: 1px;
border-color: black;
border-radius:15px;
padding: 2px 2px 2px 2px
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant