/*
some variables included here, to be replaced in code, eg for icon directory locations so we can remain platform independent here
eg. ___downArrow___
*/

/* page selector comboboxes */

PageSelector QComboBox { border: 1px solid gray; height: 20px; width: 3em; }
PageSelector QComboBox::down-arrow { image: url(___downArrow___); width: 12px; height: 12px; }
PageSelector QComboBox::down-arrow:on { top: 1px; left: 1px; }
PageSelector QComboBox:on { padding-top: 3px; padding-left: 4px; }
PageSelector QComboBox::drop-down { subcontrol-origin: padding; subcontrol-position: top right; width: 15px; border-left-width: 1px; border-left-color: darkgray; border-left-style: solid; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }

/* page back, forward etc buttons */
PageSelector QPushButton { height: 20px; width: 20px; border: 0px; }
PageSelector QPushButton:hover { border: 1px solid gray ; }
PageSelector QPushButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }


/* zoom buttons */
QPushButton#zoomDefaultToolbarButton { height: 20px; width: 20px; border: 0px; }
QPushButton#zoomDefaultToolbarButton:hover { border: 1px solid gray ; }
QPushButton#zoomDefaultToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }

QPushButton#zoomInToolbarButton { height: 20px; width: 20px; border: 0px; }
QPushButton#zoomInToolbarButton:hover { border: 1px solid gray ; }
QPushButton#zoomInToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }

QPushButton#zoomOutToolbarButton { height: 20px; width: 20px; border: 0px; }
QPushButton#zoomOutToolbarButton:hover { border: 1px solid gray ; }
QPushButton#zoomOutToolbarButton:pressed { border: 1px solid gray; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #dadbde, stop: 1 #f6f7fa); }

QSpinBox#zoomSpinBox { height: 20px; width: 3em; padding-right: 15px; }

QComboBox#layerMenu { border: 1px solid gray; height: 20px; width:6em; }
QComboBox#layerMenu::down-arrow { image: url(___downArrow___); width: 12px; height: 12px;}
QComboBox#layerMenu::down-arrow:on { top: 1px; left: 1px; }
QComboBox#layerMenu:on { padding-top: 3px; padding-left: 4px; }
QComboBox#layerMenu::drop-down { subcontrol-origin: padding; subcontrol-position: top right; width: 15px; border-left-width: 1px; border-left-color: darkgray; border-left-style: solid; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }

QComboBox#unitSwitcher { border: 1px solid gray; height: 20px; width:2em; }
QComboBox#unitSwitcher::down-arrow { image: url(___downArrow___); width: 12px; height: 12px;}
QComboBox#unitSwitcher::down-arrow:on { top: 1px; left: 1px; }
QComboBox#unitSwitcher:on { padding-top: 3px; padding-left: 4px; }
QComboBox#unitSwitcher::drop-down { subcontrol-origin: padding; subcontrol-position: top right; width: 15px; border-left-width: 1px; border-left-color: darkgray; border-left-style: solid; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }

ScToolBar QToolButton::menu-indicator { image: url(___tb_menu_arrow___); }


/*
 * Dock Container
 */
ads--CDockContainerWidget {
       background: palette(mid);
}
ads--CDockContainerWidget > QSplitter{
       padding: 1 0 1 0;
}

ads--CDockContainerWidget ads--CDockSplitter::handle {
       background: none;
       height: 2px;
}

/*
* Dock Area
*/

ads--CDockAreaWidget {
       background: none;
       border: none;
       /*border: 1px solid white;*/
}

ads--CDockAreaWidget #tabsMenuButton::menu-indicator {
       image: none;
}

/*
* Dock Area Title bar
*/

ads--CDockAreaTitleBar
{
       background: palette(mid);
       min-height: 24px;
       /* border-bottom: 1px solid palette(window); */
}

/* Container of all tabs */
ads--CDockAreaTabBar #tabsContainerWidget
{
       background: palette(mid);
       /* border-bottom: 1px solid palette(window); */
}

/*
* Tab
*/
ads--CDockWidgetTab {
       background: none;
       /*border-color: palette(light);
       border-style: solid;
       border-width: 0 1px 0 0;*/
       padding: 0px;
       border:none;
}

ads--CDockWidgetTab[activeTab="false"]
{
       background: none;
       border-right: 1px solid palette(window);
       /* border-bottom: 1px solid palette(window); */
}

ads--CDockWidgetTab[activeTab="true"] {
       background: palette(window);
}

ads--CDockWidgetTab QLabel {
       color: palette(foreground);
}

ads--CDockWidgetTab[activeTab="true"] QLabel {
       color: palette(foreground);
}

ads--CDockWidgetTab[activeTab="false"] QLabel {
       color: palette(foreground)
}


/*
* Dock Widget
*/

ads--CDockWidget {
       background: none;
       border: none;
       /*border-color: palette(light);
       border-style: solid;
       border-width: 1px 0 0 0;*/
}

ads--CTitleBarButton {
       padding: 0px 0px;
}

QScrollArea#dockWidgetScrollArea {
       padding: 0px;
       border: none;
}

/*
* Buttons
*/

#tabCloseButton {

       margin-top: 2px;
       padding:0px;
       background: none;
       border: none;
       border-radius: 2px;
/*	qproperty-icon: url(:/ads/images/close-button.svg),
	       url(:/ads/images/close-button-disabled.svg) disabled;*/
       qproperty-iconSize: 16px;
       width: 16px;
       height: 16px;
}

#tabCloseButton:hover {
       border: 1px solid rgba(0, 0, 0, 32);
       background: rgba(0, 0, 0, 16);
}

#tabCloseButton:pressed {
       background: rgba(0, 0, 0, 32);
}

#tabsMenuButton {
       /*qproperty-icon: url(:/ads/images/tabs-menu-button.svg);
       qproperty-iconSize: 16px;*/
}

#dockAreaCloseButton {
       /*qproperty-icon: url(:/ads/images/close-button.svg),
	       url(:/ads/images/close-button-disabled.svg) disabled;*/
       qproperty-iconSize: 16px;
}

#detachGroupButton {
       /*qproperty-icon: url(:/ads/images/detach-button.svg),
	       url(:/ads/images/detach-button-disabled.svg) disabled;*/
       qproperty-iconSize: 16px;
}

/*
* Floating Widget
*/

ads--CFloatingWidgetTitleBar {
   background: palette(midlight);
   /*qproperty-maximizeIcon: url(:/ads/images/maximize-button.svg);
   qproperty-normalIcon: url(:/ads/images/restore-button.svg);*/
}


#floatingTitleCloseButton, #floatingTitleMaximizeButton {
  qproperty-iconSize: 16px;
  border: none;
  margin: 3px;
}


#floatingTitleCloseButton {
  /*qproperty-icon: url(:/ads/images/close-button.svg);*/
  qproperty-iconSize: 16px;
}

#floatingTitleCloseButton:hover {
   background: rgba(0, 0, 0, 24);
   border: none;
}

#floatingTitleCloseButton:pressed {
   background: rgba(0, 0, 0, 48);
}
