--- /dev/null
+/* Default stylesheet */
+
+
+
+QTreeView::branch:has-siblings:!adjoins-item {
+ border-image: url(qss/dummy.png) 0;
+ }
+
+ QTreeView::branch:has-siblings:adjoins-item {
+ border-image: url(qss/dummy.png) 0;
+ }
+ QTreeView::branch:!has-children:!has-siblings:adjoins-item {
+ border-image: url(qss/dummy.png) 0;
+ }
+
+ QTreeView::branch:has-children:!has-siblings:closed,
+ QTreeView::branch:closed:has-children:has-siblings {
+ border-image: none;
+ image: url(qss/branch-closed.png);
+ }
+
+ QTreeView::branch:open:has-children:!has-siblings,
+ QTreeView::branch:open:has-children:has-siblings {
+ border-image: none;
+ image: url(qss/branch-open.png);
+ }
+ QTreeView::item {
+ padding: 1px 1px 1px 1px;
+ }
+
+ QTreeView[hideTree="true"]::branch:!has-chlidren:hasSiblings {
+ border-image: none;
+ image: none;
+ }
+ QTreeView {
+ border: 0.1em solid #666;
+ padding: 0 0 0 0.3em;
+ height: 1.4em;
+ background: #B0C4DE;
+ background: #EFEBE7;
+ }
+
+
+
+
+QProgressBar {
+ text-align: center;
+}
+
+QTableView {
+
+ selection-color: black;
+ selection-background-color: #B0C4DE;
+}
+
+
+QSpinBox {
+ padding-right: 15px; /* make room for the arrows */
+ border-width: 3;
+ text-align: center;
+ }
+
+
+ QSplitter::handle {
+ border-radius: 3px;
+ }
+
+
+QHeaderView {
+ background: transparent;
+}
+QHeaderView::section {
+ border: 0.1em solid #666;
+ padding: 0 0 0 0.3em;
+ height: 1.4em;
+ min-width: 20px;
+}
+QHeaderView
+ QHeaderView::section:first, QHeaderView::section:only-one {
+ border: 2px;
+ min-width: 50px;
+}
+
+
+
+
+
+
+/*
+QLineEdit:focus {
+ border: 1px solid black;
+ border-radius: 10px;
+ padding: 0 8px;
+ background: #FFFFD4;
+ selection-background-color: darkgray;
+ }
+ QLineEdit:!focus {
+ border: none;
+ background-color: transparent;
+ }
+*/
+
+
}
// Load the style sheet
private void loadStyleSheet() {
+ String styleSheetName = "default.qss";
+ if (Global.getStyle().equalsIgnoreCase("cleanlooks"))
+ styleSheetName = "default-cleanlooks.qss";
String fileName = Global.getFileManager().getQssDirPathUser("default.qss");
- fileName = Global.getFileManager().getQssDirPath("default.qss");
QFile file = new QFile(fileName);
// If a user default.qss doesn't exist, we use the one shipped with NeverNote
if (!file.exists()) {
- fileName = Global.getFileManager().getQssDirPath("default.qss");
+ fileName = Global.getFileManager().getQssDirPath(styleSheetName);
file = new QFile(fileName);
}
file.open(OpenModeFlag.ReadOnly);