/*
 * Silver theme based on default themes created by Inti Alonso
 */

/*
 * General panel settings
 */

LXQtPanel #BackgroundWidget {
    background: #31363b;
}

QToolTip {
    border: 0px solid #4C4C4C;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    color: #262626;
    padding: 1px;
    margin: 0px;
}

/*
 * General plugins settings
 */

Plugin,
LXQtPanelPlugin {
    padding: 0;
    spacing: 20px;
    qproperty-moveMarkerColor: silver;
}

Plugin > QToolButton,
Plugin > QWidget > QToolButton,
Plugin > QWidget > QToolButton > QWidget > QToolButton,
LXQtPanelPlugin > QToolButton {
    margin: 2px;
    border: 1px solid transparent;
    outline: none;
    qproperty-iconSize: 24px;
    color: #e7eef5;
}

Plugin > QToolButton:hover,
Plugin > QWidget > QToolButton:hover,
LXQtPanelPlugin > QToolButton:hover {
    color: #eef5fc;
}

Plugin > QToolButton:pressed,
Plugin > QWidget > QToolButton:pressed,
LXQtPanelPlugin > QToolButton:pressed {
    padding: 1px;
}

/*
 * Menus
 */
QMenu {
    color: #282828;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9c9c9c, stop:1 #bfbfbf);
    border-radius: 3px;
}

QMenu::icon {
    background-color: transparent;
    border: 1px solid transparent;
    padding-left: 5px;
}

QMenu::item {
    color: #282828;
    border: 1px solid transparent;
    padding: 5px 30px 5px 10px;
}

QMenu::item:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
            stop: 0 #f7f7f7, stop: 0.08 #f1f1f1,
            stop: 0.35 #c3c3c3, stop: 0.4 #b1b1b1,
            stop: 0.96 #989898, stop: 1 #dcdcdc);
    color: black;
}

QMenu::item:disabled {
    color: #6D6D6D;
}

QMenu::separator {
    background: #d0d0d0;
    margin: 0px;
    height: 1px
}


QMenu::right-arrow {
    image: url(arrow-right.svg);
}

QMenu::right-arrow:selected {
    image: url(arrow-right-selected.svg);
}

QMenu::left-arrow {
    image: url(arrow-left.svg);
}

QMenu::left-arrow:selected {
    image: url(arrow-left-selected.svg);
}

QMenu QToolButton {
    background-color: #dedede;
    color: #272727;
    padding: 5px;
    border: transparent;
    border-bottom: 1px solid #888888;
    border-top: 1px solid #888888;
    font: bold;
}

QMenu::indicator:non-exclusive:checked {
    image: url(checked.svg);
    padding-left: 5px;
}

QMenu::indicator:non-exclusive:unchecked {
    image: url(unchecked.svg);
    padding-left: 5px;
}

/*
 * Calendar Widget
*/
QCalendarWidget QAbstractItemView:enabled {
    color: #3e3e3e;
    selection-background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #adadad, stop:1 #757c7b);
    selection-color: black;
    background-color: #bdc3c3;
}

QCalendarWidget QAbstractItemView:disabled {
    color: #7e7e7e;
}

QCalendarWidget QWidget {
    alternate-background-color: #a6abab; /* week and day frame */
    background-color: #52595a; /* background of buttons and year/month */
    color: #DEDEDE;
}

/* months menu background should be restored -- it's changed above because of inheritance */
QCalendarWidget QMenu {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9c9c9c, stop:1 #bfbfbf);
}

QCalendarWidget #qt_calendar_navigationbar {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #596061, stop:1 #393d3e);
    padding: 2px;

}

/* oppress hook icon */
QCalendarWidget QToolButton::menu-indicator {
    image: none;
}

QCalendarWidget QToolButton {
    color: #daebec;
    padding: 2px;
    margin: 2px;
}

QCalendarWidget #qt_calendar_nextmonth {
    qproperty-icon: url(calendar-popup/right-arrow.svg);
    qproperty-iconSize: 18px;
}

QCalendarWidget #qt_calendar_prevmonth {
    qproperty-icon: url(calendar-popup/left-arrow.svg);
    qproperty-iconSize: 18px;
}

/*
 * Main menu plugin
 */
#MainMenuPlugin {
    padding: 0px;
}

#MainMenu {
    qproperty-icon: url(mainmenu.svg);
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    border-radius: 1px;
    margin-right: 5px;
    color: black;
    padding: 0px 5px;
    margin: 0;
}

#MainMenu:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d9e6da, stop:1 #dfe6e4);
}

#MainMenu:pressed {
    padding-top: 1px;
}

#MainMenu QLineEdit {
    border: 1px solid #b0b0b0;
    border-radius: 2px;
    margin: 2px;
    padding: 1px;
    background: #d1d8d8;
    color: #363737;

}

#MainMenu ActionView {
    border: none;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9c9c9c, stop:1 #bfbfbf);
    margin-right: 5px;
    margin-top: 5px;
}

#MainMenu ActionView::item {
    border: 1px solid transparent;
    padding: 2px;
    color: #282828;
}

#MainMenu ActionView::item:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
            stop: 0 #f7f7f7, stop: 0.08 #f1f1f1,
            stop: 0.35 #c3c3c3, stop: 0.4 #b1b1b1,
            stop: 0.96 #989898, stop: 1 #dcdcdc);
    color: black;
}

#MainMenu ActionView::item:hover {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
            stop: 0 #f7f7f7, stop: 0.08 #f1f1f1,
            stop: 0.35 #c3c3c3, stop: 0.4 #b1b1b1,
            stop: 0.96 #d1d1d1, stop: 1#ececec);
    color: black;
}

#MainMenu QScrollBar:vertical {
    background-color: #898f8d;
    width: 10px;
    border: 1px solid transparent;
}

#MainMenu QScrollBar::handle:vertical {
    background-color: #787878;
    border: 0px solid #787878;
    min-height: 40px;
    border-radius: 3px;
    margin: 1px;
}

#MainMenu QScrollBar::handle:vertical:hover {
    background-color: #616e7e;
    border: 1px solid #616e7e;
}

#MainMenu QScrollBar::add-line:vertical,
#MainMenu QScrollBar::sub-line:vertical {
    border: 0px solid transparent;
    background: transparent;
    width: 0px;
}

/*
 * Fancy menu plugin
 */
#FancyMenuPlugin {
    padding: 0px;
}

#FancyMenu {
    qproperty-icon: url(mainmenu.svg);
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    border-radius: 1px;
    margin-right: 5px;
    color: black;
    padding: 0px 5px;
    margin: 0;
}

#FancyMenu:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9c9c9c, stop:1 #bfbfbf);
}

#FancyMenu:pressed {
    padding-top: 1px;
}

LXQtFancyMenuWindow {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #c8c8c8);
}

#FancyMenu QLineEdit {
    border-radius: 2px;
    padding: 1px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #9c9c9c, stop:1 #bfbfbf);
    color: #363737;
}

#FancyMenu QListView {
    border: none;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #a8a8a8, stop:1 #b6b6b6);
    margin-right: 5px;
    margin-top: 5px;
}

#FancyMenu #AppView{
    background: #d5d5d5;
}

#FancyMenu #AppView::item{
    color: #4a4a4a;
}

#FancyMenu QListView::item {
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px;
    color: #282828;
}

#FancyMenu QListView::item:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
            stop: 0 #f7f7f7, stop: 0.08 #f1f1f1,
            stop: 0.35 #c3c3c3, stop: 0.4 #b1b1b1,
            stop: 0.96 #989898, stop: 1 #dcdcdc);
    color: black;
    border: 1px solid grey;
}

#FancyMenu QListView::item:hover {
    border: 1px solid white;
    border-radius:3px;
    color: black;
}

#FancyMenu QListView::focus {
    outline:transparent;
    padding: 0px;
}

#FancyMenu QToolButton {
    margin: 3px;
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 4px;
}

#FancyMenu QToolButton:hover,
#FancyMenu QToolButton:focus {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
            stop: 0 #f7f7f7, stop: 0.08 #f1f1f1,
            stop: 0.35 #c3c3c3, stop: 0.4 #b1b1b1,
            stop: 0.96 #d1d1d1, stop: 1#ececec);
    border: 1px solid black;
}

#FancyMenu QToolButton:pressed {
    background-color: #afafaf;
}

#FancyMenu QScrollBar:vertical {
    background-color: #9e9e9e;
    width: 17px;
    margin: 2px 2px 2px 2px;
    border: 1px solid transparent;
    border-radius: 3px;
}

#FancyMenu QScrollBar:horizontal {
    background-color: #9e9e9e;
    height: 17px;
    margin: 2px 2px 2px 2px;
    border: 1px solid transparent;
    border-radius: 3px;
}

#FancyMenu QScrollBar::handle{
    background-color: #e2e2e2;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    margin: 1px;
}

#FancyMenu QScrollBar::handle:hover {
    background-color: #dedede;
    border: 1px solid white;
    margin: 0px;
}

#FancyMenu QScrollBar::add-line,
#FancyMenu QScrollBar::sub-line {
    border: 0px solid transparent;
    background: transparent;
    width: 0px;
}

#FancyMenu QAbstractScrollArea::corner {
    background: transparent;
}

/*
 * QuickLaunch
 */
#QuickLaunchPlaceHolder {
    color: #e4ebec;
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #4b4c4c);
    padding: 0 5px;
}

#QuickLaunch QToolButton {
    border: 0px;
    margin: 2px;
    padding: 2px;
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #4b4c4c);
    border: 1px solid #303131;
}

#QuickLaunch QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 3px;
}

#QuickLaunch QToolButton:pressed {
    padding: 4px;
}

/*
 * TaskBar
 */
#TaskBar QToolButton {
    margin: 2px;
    padding: 2px;
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #4b4c4c);
    border-radius: 3px;
    border: 1px solid #303131;
}

#TaskBar QToolButton:on {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #737e7b);
    border: 1px solid #939393;
}

#TaskBar QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
}

#TaskBar QToolButton:pressed {
    border-top: 2px solid transparent;
}

#TaskBar QToolButton[urgent="true"] {
    color: black;
    background: #e63109;
}

#TaskBar LXQtGroupPopup {
    background: palette(text);
    border: 1px solid silver;
}

#TaskBar LXQtGroupPopup QToolButton {
    margin: 0;
}

/*
 * Tray Plugin
 */
#Tray {
    min-width: 6px;
}

TrayIcon {
    border: 0px;
    margin: 2px;
    padding: 2px;
}

/*
 * Mount plugin
 */
#LXQtMountPlugin QToolButton {
    border: 0px;
    margin: 2px;
    padding: 2px;
    border: 1px solid #303131;
}

#LXQtMountPlugin QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 3px;
}

#LXQtMountPlugin QToolButton:pressed {
    border-top: 2px solid transparent;
}

#LXQtMountPopup {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #4b4c4c);
    padding: 4px;
    border-radius_3px;
}

#LXQtMountPopup > MenuDiskItem {
    border-radius: 3px;
}

#LXQtMountPopup > MenuDiskItem:hover {}

#LXQtMountPopup #EjectButton,
#LXQtMountPopup #DiskButton {
    qproperty-iconSize: 22px;
    background-color: transparent;
    border: none;
    color: palette(window);
    padding: 6px;
    border-radius: 3px;
}

#LXQtMountPopup #EjectButton:hover,
#LXQtMountPopup #DiskButton:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    color: palette(text);
}

#LXQtMountPopup #NoDiskLabel {
    margin: 6px;
    color: palette(window);
}

/*
 * Volume plugin
 */
#VolumePlugin QToolButton {
    border: 0px;
    margin: 2px;
    padding: 2px;
    border-radius: 5px;
    qproperty-iconSize: 20px;
}

#VolumePlugin QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
}

#VolumePlugin QToolButton:pressed {
    border-top: 2px solid transparent;
}

VolumePopup QScrollArea {
    border-top: 1px solid grey;
}

VolumePopup, VolumePopup QScrollArea, VolumePopup QWidget {
    margin: 2px;
    padding: 2px;
    background-color:  #2e2f2f;
    color: #d6d6d6;
}

VolumePopup QPushButton {
    background: #8c8f8f;
    color: black;
    padding: 2px;
    margin: 2px;
    border: 1px solid transparent;
    border-radius: 3px;
    qproperty-iconSize: 20px;
}

VolumePopup QPushButton:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    color: black;
    border-radius: 3px;
}

VolumePopup QPushButton:on  {
    border:  1px solid white;
    border-radius: 3px;
}

VolumePopup QSlider::groove:horizontal {
    background: hsv(0, 0, 9);
    height: 6px;
    border-radius: 1px;
}

VolumePopup QSlider::handle:horizontal {
    width: 10px;
    background: #C2C2C2;
    border-radius: 2px;
    margin: -4px 0; /* expand outside the groove */
}

VolumePopup QSlider::sub-page:horizontal {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    border: 1px solid black;
    width: 3px;
    border-radius: 3px;
}

VolumePopup QSlider::add-page:horizontal {
    background: rgba(0, 0, 0, 40%);
    border-radius: 3px;
}

/*
 * Backlight
 */
#BacklightPlugin QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 3px;
}

#BacklightPlugin QToolButton:pressed {
    border-top: 2px solid transparent;
}

#Backlight > SliderDialog > QToolButton {
    background: #8c8f8f;
    padding: 2px 4px;
    margin: 3px;
    border: none;
    qproperty-iconSize: 20px;
}

#Backlight > SliderDialog > QToolButton:hover {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    color: black;
    border-radius: 3px;
}

#Backlight > SliderDialog {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #59595a);
    margin: 2px;
    padding: 2px;
    border-radius: 3px;
}

#Backlight > SliderDialog > QSlider {
    margin: 2px;
    padding: 2px;
}

#Backlight > SliderDialog > QSlider::groove:vertical {
    background: hsv(0, 0, 9);
    width: 5px;
    border-radius: 1px;
}

#Backlight > SliderDialog > QSlider::handle:vertical {
    height: 10px;
    background: #C2C2C2;
    border-radius: 2px;
    margin: 0 -4px; /* expand outside the groove */
}

#Backlight > SliderDialog > QSlider::add-page:vertical {
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    border: 1px solid black;
    border-radius: 3px;
}

#Backlight > SliderDialog > QSlider::sub-page:vertical {
    background: rgba(0, 0, 0, 80%);
    border-radius: 3px;
}

/*
 * ShowDesktop
 */
#ShowDesktop {
    border: 0px;
    margin: 2px;
    padding: 2px;
}

#ShowDesktop:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 3px;
}

#ShowDesktop:pressed {
    padding: 4px;
}

/*
 * Desktopswitch
 */
#DesktopSwitch QToolButton {
    margin: 2px;
    color: #cccccc;
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #2e2f2f, stop:1 #4b4c4c);
}

#DesktopSwitch QToolButton:on {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #737e7b);
    color: e7eef5;
    border: 1px solid #e8e8e8;
    border-radius: 2px
}

#DesktopSwitch QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 2px;
}

#DesktopSwitch QToolButton:pressed {
    border-top: 2px solid transparent;
}

#DesktopSwitch QToolButton[urgent="true"] {
    color: black;
    background: #e63109;
}

/*
 * KbIndicator
 */
#KbIndicator QLabel {
    padding: 3px;
    border: 0px;
    margin: 2px;
}

#KbIndicator QLabel:disabled {
    color: #999999;
}

#KbIndicator QLabel:enabled {
    background-color: qlineargradient(x1:1, y1:0, x2:1, y2:1, stop:0 #adadad, stop:1 #d1dedd);
    color: black;
    border-radius: 3px;
    margin: 1px;
}

/*
 * WorldClock
 */
#WorldClock {
    margin: 2px;
    padding: 2px;
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #3e3f3f, stop:1 #2e2f2f);
}

#WorldClock QLabel {
    margin: 2px;
    padding: 4px;
    color: #DEDEDE;
    background-color: #3d3e3e;

}

/*
 * SysStat
*/
#SysStat {
    padding: 1px 1px 1px 1px;
}

#SysStat > QLabel {
    font-size: 6pt;
}

#SysStat_Graph {
    qproperty-gridColor: rgba(255, 255, 255, 25%);
    qproperty-titleColor: rgba(255, 255, 255, 75%);
    qproperty-cpuSystemColor: rgb(220, 0, 0);
    qproperty-cpuUserColor: rgb(110, 180, 220);
    qproperty-cpuNiceColor: rgb(0, 220, 0);
    qproperty-cpuOtherColor: rgb(180, 180, 0);
    qproperty-frequencyColor: rgb(182, 182, 182);
    qproperty-memAppsColor: rgb(0, 0, 128);
    qproperty-memBuffersColor: rgb(0, 128, 0);
    qproperty-memCachedColor: rgb(128, 128, 0);
    qproperty-swapUsedColor: rgb(128, 0, 0);
    qproperty-netReceivedColor: rgb(0, 0, 128);
    qproperty-netTransmittedColor: rgb(128, 128, 0);
}

/*
 * CPU monitor
 */
#LXQtCpuLoad {
    qproperty-fontColor: #cacaca;
}

/*
 * Spacer
 */
#Spacer {
    background-position: center center;
}

#Spacer[type="lined"] {
    background-image: url(/spacer-plugin/spacer-line.svg);
}

#Spacer[type="dotted"] {
    background-image: url(/spacer-plugin/spacer-dots.svg);
}

#Spacer[orientation="horizontal"] {
    background-repeat: repeat-y;
    margin-top: 2px;
    margin-bottom: 2px;
}

#Spacer[orientation="vertical"] {
    background-repeat: repeat-x;
    margin-right: 2px;
    margin-left: 2px;
}

/*
 * CustomCommand Plugin
 */

#Custom::hover {
    color: white;
}


/*
 * ColorPicker
 */
#ColorPicker QToolButton:hover {
    background-color: qlineargradient(x1:1, y1:1, x2:0, y2:1, stop:0 #4a4a4a, stop:1 #909e9a);
    border: 1px solid #939393;
    border-radius: 3px;
}

#ColorPicker QToolButton:pressed {
    border-top: 2px solid transparent;
}
