Your IP : 216.73.216.48


Current Path : /usr/X11R6/share/apps/mobileui/
Upload File :
Current File : //usr/X11R6/share/apps/mobileui/stylesheet.css

/*
    Copyright (c) 2010 Volker Krause <vkrause@kde.org>

    This library is free software; you can redistribute it and/or modify it
    under the terms of the GNU Library General Public License as published by
    the Free Software Foundation; either version 2 of the License, or (at your
    option) any later version.

    This library is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
    License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to the
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
*/


/*
 * Generic settings
 */

/* font colors */
QCheckBox,
QComboBox:editable,
QLabel,
QPushButton,
QRadioButton:off,
KPIM--KDateEdit,
KPIM--KTimeEdit
{
  color: black
}


/* idle button background */
QCheckBox,
QComboBox,
QDateTimeEdit::down-button,
QDateTimeEdit::up-button,
QRadioButton,
QPushButton,
QSpinBox::down-button,
QSpinBox::up-button,
QToolButton
{
  border-image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-border.png) 14 14 14 14 repeat stretch;
  border-top: 10px;
  border-bottom: 10px;
  border-left: 10px;
  border-right: 10px;
  min-height: 32px;
}

/* active button background */
QCheckBox:pressed,
QComboBox:!editable:pressed,
QDateTimeEdit::down-button:pressed,
QDateTimeEdit::up-button:pressed,
QPushButton:pressed,
QRadioButton:on,
QSpinBox::down-button:pressed,
QSpinBox::up-button:pressed,
QToolButton:pressed
{
  border-image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-border-active.png) 14 14 14 14 repeat stretch;
  color: white;
}

/* text input frames */
QDateTimeEdit,
QLineEdit,
QTextEdit,
QSpinBox
{
  background-color: white;
  border: 2px;
  border-color: grey;
  border-radius: 8px;
  border-style: inset;
  padding: 4px;
}

KLineEdit
{
  background-color: white;
  border: 2px;
  border-color: grey;
  border-radius: 8px;
  border-style: inset;
  padding: 4px;
  padding-right: 48px
}


/*
 * Widget specific settings
 */

/* QCheckBox */
QCheckBox:disabled {
  color: grey;
}

QCheckBox::indicator:disabled {
  background-color: rgba(0,0,0,0);
}


/* QColumnView, QListView and hacks for column view internals
   TODO: find a way to style stand-alone QListView's but not those of a combo box
*/
QColumnView,
QColumnView .QWidget,
QColumnView .QAbstractItemView,
QColumnView QListView,
.QListWidget,
.QListWidget::item:!selected
{
  background-color: rgba(0,0,0,0);
  color: black;
}

KCompletionBox,
KCompletionBox::item:!selected
{
  background-color: white;
}

/* QComboBox */
QComboBox::drop-down, QComboBox::down-arrow {
  background-color: rgba(0,0,0,0);
}


/* QRadioButton */
QRadioButton::indicator {
  background-color: rgba(0,0,0,0);
  width: 0;
}


/* QScrollArea */
QScrollArea {
  background-color: rgba(0,0,0,0);
}


/* QSpinBox and QDateTimeEdit */
QDateTimeEdit, QSpinBox {
  margin-left: 52px;
  margin-right: 52px;
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: center;
  /* for some reason padding is increased by margin here... */
  padding-left: -52px;
  padding-right: -52px;
}

QDateTimeEdit::down-button,
QDateTimeEdit::up-button,
QSpinBox::down-button,
QSpinBox::up-button
{
  subcontrol-origin: margin;
  height: 32px;
  width: 32px;
}

QDateTimeEdit::down-button,
QSpinBox::down-button
{
  subcontrol-position: left;
}

QDateTimeEdit::up-button,
QSpinBox::up-button
{
  subcontrol-position: right;
}

QDateTimeEdit::down-arrow,
QSpinBox::down-arrow
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-minus.png);
}

QDateTimeEdit::down-arrow:pressed,
QSpinBox::down-arrow:pressed
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-minus-active.png);
}

QDateTimeEdit::down-arrow:disabled,
QDateTimeEdit::down-arrow:off,
QSpinBox::down-arrow:disabled,
QSpinBox::down-arrow:off
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-minus-disabled.png);
}

QDateTimeEdit::up-arrow,
QSpinBox::up-arrow
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-plus.png);
}

QDateTimeEdit::up-arrow:pressed,
QSpinBox::up-arrow:pressed
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-plus-active.png);
}

QDateTimeEdit::up-arrow:disabled,
QDateTimeEdit::up-arrow:off,
QSpinBox::up-arrow:disabled,
QSpinBox::up-arrow:off
{
  image: url(/usr/lib64/kde4/imports/org/kde/pim/mobileui/images/button-plus-disabled.png);
}


/** Buttons */
QPushButton, QToolButton:
{
  qproperty-iconSize: 32px 32px;
}

QToolButton
{
  min-width: 32px;
  padding: 1px;
}

/** Menus */
QMenu
{
  background-color: white;
  margin: 2px; /* some spacing around the menu */
}

QMenu::item
{
  padding: 2px 25px 2px 20px;
  border: 1px solid transparent; /* reserve space for selection border */
  color: #000001;
}

QMenu::item:selected { /* when user selects item using mouse or keyboard */
  background-color: #654321;
  color: white;
}


/*
 * KDGantt
 */
KDGantt--HeaderWidget,
EventViews--TimelineView QHeaderView
{
  background-color: lightgray;
  color: black;
}

EventViews--TimelineView QTreeWidget:item
{
  background-color: white;
  color: black;
}


/*
 * Hacks that should not be necessary at all
 */

/* Recipients editor does not have a transparent background by default on Maemo and tries very hard to avoid getting one :-/ */
MessageComposer--RecipientLine,
MessageComposer--RecipientsView > * > QWidget,
KPIM--MultiplyingLineView > * > QWidget
{
  background-color: rgba(0,0,0,0);
}

/* category label in incidence editor has an ugly frame by default */
KSqueezedTextLabel#mCategoriesLabel
{
  background-color: white;
  border: 2px;
  border-color: grey;
  border-radius: 8px;
  border-style: inset;
  padding: 4px;
}