Skip to content

Commit

Permalink
[themes] Properly style the calendar widget
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 28, 2019
1 parent 377b4d7 commit f262ab5
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
48 changes: 48 additions & 0 deletions resources/themes/Blend of Gray/style.qss
Expand Up @@ -80,6 +80,54 @@ QAbstractSpinBox::down-button {
image: url(@theme_path/icons/arrow-down.svg);
}

QAbstractSpinBox::drop-down {
subcontrol-origin: border;
subcontrol-position: top right;
width: 0.8em;
border: 0px;
}

QAbstractSpinBox::down-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}

/* ==================================================================================== */
/* CALENDAR
/* ==================================================================================== */

/* header row */
QCalendarWidget QWidget {
color: @itembackground;
alternate-background-color: @background;
}

QCalendarWidget QWidget#qt_calendar_navigationbar
{
color: @text;
background-color: @background;
}

QCalendarWidget QWidget#qt_calendar_navigationbar QWidget
{
color: @text;
}

/* normal days */
QCalendarWidget QAbstractItemView:enabled
{
color: @text;
background-color: @itembackground;
selection-background-color: @selection;
selection-color: @text;
}

QCalendarWidget QAbstractItemView:disabled
{
color: @itemalternativebackground;
}

/* ==================================================================================== */
/* MENU */
Expand Down
48 changes: 48 additions & 0 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -80,6 +80,54 @@ QAbstractSpinBox::down-button {
image: url(@theme_path/icons/arrow-down.svg);
}

QAbstractSpinBox::drop-down {
subcontrol-origin: border;
subcontrol-position: top right;
width: 0.8em;
border: 0px;
}

QAbstractSpinBox::down-arrow
{
image: url(@theme_path/icons/arrow-down.svg);
width: 0.8em;
height: 1.2em;
}

/* ==================================================================================== */
/* CALENDAR
/* ==================================================================================== */

/* header row */
QCalendarWidget QWidget {
color: @itembackground;
alternate-background-color: @background;
}

QCalendarWidget QWidget#qt_calendar_navigationbar
{
color: @text;
background-color: @background;
}

QCalendarWidget QWidget#qt_calendar_navigationbar QWidget
{
color: @text;
}

/* normal days */
QCalendarWidget QAbstractItemView:enabled
{
color: @text;
background-color: @itembackground;
selection-background-color: @selection;
selection-color: @text;
}

QCalendarWidget QAbstractItemView:disabled
{
color: @background;
}

/* ==================================================================================== */
/* MENU */
Expand Down

0 comments on commit f262ab5

Please sign in to comment.