/*This is a port of the design proposal for Plasma Next made by the KDE Visual Design Group. Ported by Inti Alonso.*/

/*
 * General panel settings
 */

LXQtPanel #BackgroundWidget {
    background: rgba(240, 240, 240, 100%);
}

QToolTip {
    border-radius: 4px;
    border: 1px solid rgba(155, 155, 155, 100%);
    background: rgba(240, 240, 240, 100%);
    padding: 2px;
    margin: 0px;
    color: #313639;
}

/*
 * General plugins settings
 */

Plugin,
LXQtPanelPlugin {
    padding: 0;
    spacing: 20px;
    qproperty-moveMarkerColor: rgba(30, 145, 255, 50%);
}

Plugin > QWidget,
Plugin > QWidget > QWidget {
    color: #313639;
}

Plugin > QToolButton,
Plugin > QWidget > QToolButton,
Plugin > QWidget > QToolButton > QWidget > QToolButton,
LXQtPanelPlugin > QToolButton {
    margin: 0;
    border: 1px solid transparent;
    qproperty-iconSize: 24px;
    color: #313639;
}

QMenu {
    border: 1px solid rgba(155, 155, 155, 100%);
    background: rgba(240, 240, 240, 100%);
    margin: 0px;
    color: #313639;
}

QMenu QToolButton {
    background-color: transparent;
    color: black;
    font: bold;
    /* padding and border guarantee that it won't be drawn by widget style */
    padding: 1px;
    border: none;
    font: bold;
}

QMenu::item {
    color: #313639;
}

QMenu::item:disabled {
    color: rgb(160, 160, 160);
}

QMenu::item:selected {
    background: rgba(30, 145, 255, 50%);
    color: #313639;
}

QMenu::item:selected:disabled {
    color: rgb(160, 160, 160);
    background: rgb(240, 240, 240);
}

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

QMenu::indicator {
    width: 14px;
    height: 14px;
    background-color: transparent;
}

QMenu::indicator:non-exclusive:unchecked {
    image: url(/unchecked.svg);
}

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

/*
 * Main menu
 */
#MainMenu {
    color: rgba(54, 54, 54, 100%);
    margin: 3px 1px 3px 1px;
    border-top: 3px solid transparent;
    qproperty-icon: url(mainmenu.svg);
}

#MainMenu:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

#MainMenu QLineEdit {
    color: #000000;
    background: #f0f0f0;
    border: 1px solid #9b9b9b;
    border-radius: 0px;
    padding: 3px;
    selection-color: #eee;
    selection-background-color: #1e91ff;
}

#MainMenu QLineEdit:focus {
    border: 1px solid #1e91ff;
}

#MainMenu ActionView {
    background: #f0f0f0;
    border: 1px solid #9b9b9b;
    color: #313639;
}

#MainMenu ActionView::item {
    border: 1px solid transparent;
    color: #313639;
}

#MainMenu ActionView::item:hover {
    background: rgba(30, 145, 255, 10%);
    color: #313639;
}

#MainMenu ActionView::item:selected {
    background: rgba(30, 145, 255, 50%);
    color: #313639;
}

/*
 * Fancy menu
 */
#FancyMenu {
    color: rgba(54, 54, 54, 100%);
    margin: 3px 1px 3px 1px;
    border-top: 3px solid transparent;
    qproperty-icon: url(mainmenu.svg);
}

#FancyMenu:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

LXQtFancyMenuWindow {
    background: #f0f0f0;
}

#FancyMenu QLineEdit {
    color: #000000;
    background: #f0f0f0;
    border: 1px solid #9b9b9b;
    border-radius: 0px;
    padding: 3px;
    selection-color: #eee;
    selection-background-color: #1e91ff;
}

#FancyMenu QLineEdit:focus {
    border: 1px solid #1e91ff;
}

#FancyMenu #AppView {
    background: #eaeaea;
    border: 1px solid #9b9b9b;
    color: #313639;
}

#FancyMenu QListView::item {
    border: 1px solid transparent;
    color: #313639;
}

#FancyMenu QListView::item:hover {
    background: rgba(30, 145, 255, 10%);
    color: #313639;
}

#FancyMenu QListView::item:selected {
    background: rgba(30, 145, 255, 50%);
    color: #313639;
}

#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 {
    border: 1px solid rgba(30, 145, 255, 100%);
}

#FancyMenu QToolButton:pressed {
    color: rgba(54, 54, 54, 100%);
    border: 1px solid rgba(30, 145, 255, 100%);
    background-color: rgba(30, 145, 255, 30%);
}

#FancyMenu QScrollBar:vertical {
    background-color: #f0f0f0;
    width: 15px;
    margin: 2px 2px 2px 2px;
    border: 1px solid transparent;
    border-radius: 2px;
}

#FancyMenu QScrollBar:horizontal {
    background-color: #f0f0f0;
    height: 15px;
    margin: 2px 2px 2px 2px;
    border: 1px solid transparent;
}

#FancyMenu QScrollBar::handle {
    background-color:  rgba(30, 145, 255, 10%);
    border: 1px solid #2878c8;
    min-height: 40px;
    border-radius: 1px;
    margin: 1px;
}

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

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

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

/*
 * DirectoryMenu
 */
#DirectoryMenu {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
}

#DirectoryMenu:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

/*
 * Backlight
 */
#Backlight {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
}

#Backlight:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

/*
 * Sensors
 */
#Sensors {
    margin: 3px;
}

/*
 * TaskBar
 */
#TaskBar QToolButton {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid #DEDEDE;
    color: rgba(54, 54, 54, 60%);
}

#TaskBar QToolButton:on {
    border-top: 3px solid rgba(30, 145, 255, 100%);
    color: rgba(54, 54, 54, 100%);
}

#TaskBar QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
    color: rgba(54, 54, 54, 100%);
}

#TaskBar QToolButton[urgent="true"] {
    color: palette(highlighted-text);
    background: palette(highlight);
}

#TaskBar LXQtGroupPopup {
    background: rgba(240, 240, 240, 100%);
    border: 1px solid rgba(30, 145, 255, 100%);
}

#TaskBar LXQtGroupPopup QToolButton {
    margin: 0;
}

/*
 * QuickLaunch
 */
#QuickLaunchPlaceHolder {
    color: #1e91ff;
    padding: 0 5px;
}

#QuickLaunch QToolButton {
    margin: 3px 1px 3px 1px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#QuickLaunch QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
    color: rgba(54, 54, 54, 100%);
}

/*
 * Volume plugin
 */
#VolumePlugin QToolButton {
    margin: 3px 1px 3px 1px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#VolumePlugin QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

VolumePopup {
    border: 1px solid rgba(155, 155, 155, 100%);
    background: rgba(240, 240, 240, 100%);
    padding: 4px;
}

VolumePopup QPushButton {
    color: rgba(54, 54, 54, 60%);
    background: rgba(30, 145, 255, 30%);
    padding: 2px;
    margin: 2px;
    border-radius: 4px;
    qproperty-iconSize: 24px;
    border: 1px solid rgba(30, 145, 255, 30%);
}

VolumePopup QPushButton:hover, VolumePopup QPushButton:on {
    color: rgba(54, 54, 54, 100%);
    background: rgba(30, 145, 255, 30%);
    border: 1px solid rgba(30, 145, 255, 100%);
}


VolumePopup QSlider::groove:horizontal {
    background: rgba(155, 155, 155, 50%);
    height: 5px;
    border-radius: 2px;
}

VolumePopup QSlider::handle:horizontal {
    height: 10px;
    width: 10px;
    background: rgba(240, 240, 240, 100%);
    border-radius: 2px;
    border: 1px solid rgba(54, 54, 54, 100%);
    margin: -5px 0; /* expand outside the groove */
}

VolumePopup QSlider::sub-page:horizontal {
    background: rgba(30, 145, 255, 100%);
    border: 1px solid rgba(155, 155, 155, 100%);
    border-radius: 2px;

}

VolumePopup QSlider::add-page:horiziontal {
    border: 1px solid rgba(155, 155, 155, 100%);
    border-radius: 2px;
}

/*
 * Desktopswitch
 */
#DesktopSwitch QToolButton {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#DesktopSwitch QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
    color: rgba(54, 54, 54, 100%);
}

#DesktopSwitch QToolButton:on {
    border-top: 3px solid rgba(30, 145, 255, 100%);
    color: rgba(54, 54, 54, 100%);
}

#DesktopSwitch QToolButton[urgent="true"] {
    color: palette(highlighted-text);
    background: palette(highlight);
}

/*
 * Mount plugin
 */
#LXQtMountPlugin QToolButton {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#LXQtMountPlugin QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
    color: rgba(54, 54, 54, 100%);
}

#LXQtMountPopup {
    background: rgba(240, 240, 240, 100%);
    color: rgba(54, 54, 54, 100%);
    padding: 4px;
}

#LXQtMountPopup > MenuDiskItem {
    color: rgba(54, 54, 54, 60%);
}

#LXQtMountPopup > MenuDiskItem:hover {}

#LXQtMountPopup #EjectButton,
#LXQtMountPopup #DiskButton {
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 4px;
    qproperty-iconSize: 22px;
}

#LXQtMountPopup #EjectButton:hover,
#LXQtMountPopup #DiskButton:hover {
    color: rgba(54, 54, 54, 100%);
    background: rgba(30, 145, 255, 30%);
    border: 1px solid rgba(30, 145, 255, 100%);
}

#LXQtMountPopup #NoDiskLabel {
    color: rgba(54, 54, 54, 60%);
    margin: 6px;
}

/*
 * ShowDesktop
 */
#ShowDesktop {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#ShowDesktop:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
    color: rgba(54, 54, 54, 100%);
}

/*
 * KbIndicator
 */
#KbIndicator > QLabel {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 60%);
}

#KbIndicator > QLabel:enabled {
    border-top: 3px solid rgba(30, 145, 255, 100%);
    color: rgba(54, 54, 54, 100%);
}

#KbIndicator:disabled {
    background: transparent;
    color: rgba(54, 54, 54, 60%);
}

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

TrayIcon {
    margin: 2px;
}

/*
 * #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(128, 0, 0);
    qproperty-cpuUserColor: rgb(0, 0, 128);
    qproperty-cpuNiceColor: rgb(0, 128, 0);
    qproperty-cpuOtherColor: rgb(128, 128, 0);
    qproperty-frequencyColor: rgb(96, 96, 96);
    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);
}

/*
 * WorldClock
 */
#WorldClock {
    margin: 3px;
    padding-top: 2px;
    border-top: 3px solid transparent;
    color: rgba(54, 54, 54, 100%);
}

#WorldClock:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}

#WorldClock QLabel {
    padding: 2px;
    color: rgba(54, 54, 54, 100%);
    background-color: transparent;
}

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

/*
 * Calendar Widget
 */
QCalendarWidget #qt_calendar_navigationbar,
QCalendarWidget #qt_calendar_navigationbar * {
    background: rgba(190, 190, 190, 100%);
    color: rgba(54, 54, 54, 100%);
}

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

QCalendarWidget QToolButton:hover {
    color: rgba(54, 54, 54, 100%);
    background: rgba(30, 145, 255, 30%);
    border: 1px solid rgba(30, 145, 255, 100%);
}

QCalendarWidget QToolButton::menu-indicator {
    image: none;
}

QCalendarWidget QSpinBox {
    background: white;
    selection-background-color: rgba(30, 145, 255, 30%);
    selection-color: rgba(54, 54, 54, 100%);
}

QCalendarWidget QTableView {
    background: rgba(240, 240, 240, 100%);
    selection-background-color: rgba(30, 145, 255, 30%);
}

QCalendarWidget #qt_calendar_nextmonth {
    max-height: 20px;
    min-height: 20px;
    qproperty-icon: url(/right-arrow.svg);
}

QCalendarWidget #qt_calendar_prevmonth {
    max-height: 20px;
    min-height: 20px;
    qproperty-icon: url(/left-arrow.svg);
}

QCalendarWidget QWidget {
    alternate-background-color: rgba(210, 210, 210, 100%);
}

QTableViewItem {
    border: 1px solid rgba(30, 145, 255, 100%);
}

/*
 * 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;
}

/*
 * ColorPicker
 */
#ColorPicker QToolButton {
    margin: 3px 1px 3px 1px;
    padding-top: 2px;
    border-top: 3px solid transparent;
}

#ColorPicker QToolButton:hover {
    border-top: 3px solid rgba(30, 145, 255, 50%);
}
