Package vqt :: Module colors
[hide private]
[frames] | no frames]

Source Code for Module vqt.colors

  1  
 
  2  qt_matrix = '''
 
  3  
 
  4  QWidget {
 
  5      background-color: #000000;
 
  6      color: #00ff00;
 
  7      font: Courier;
 
  8  }
 
  9  
 
 10  QTextEdit {
 
 11      border: 2px solid #00802b;
 
 12  }
 
 13  
 
 14  QDockWidget::title {
 
 15      background: #000000;
 
 16      text-align: center;
 
 17  }
 
 18  
 
 19  QTabBar::tab {
 
 20      /*
 
 21       background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
 
 22                                   stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
 
 23                                   stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
 
 24      */
 
 25      background: #000000;
 
 26      border: 2px solid #00802b;
 
 27      /* border-bottom-color: #C2C7CB; */
 
 28      border-top-left-radius: 4px;
 
 29      border-top-right-radius: 4px;
 
 30      min-width: 8ex;
 
 31      padding: 2px;
 
 32  }
 
 33  
 
 34  QTabBar::tab:selected {
 
 35      border: 3px solid #00ff00;
 
 36      /* border-bottom-color: #00ff00; */
 
 37  }
 
 38  
 
 39  QTreeView::item:selected {
 
 40       /* border: 1px solid #567dbc; */
 
 41      color: #000000;
 
 42      background: #00802b;
 
 43  }
 
 44  
 
 45  QMainWindow::seperator {
 
 46      width: 4px;
 
 47      height: 4px;
 
 48      background: #00802b;
 
 49  }
 
 50  
 
 51  QMainWindow::seperator:hover {
 
 52      width: 4px;
 
 53      height: 4px;
 
 54      background: #00ff00;
 
 55  }
 
 56  
 
 57  QMenu {
 
 58      color: #00ff00;
 
 59      background-color: #000000;
 
 60  
 
 61      border: 2px solid #00802b;
 
 62  
 
 63      selection-color: #000000;
 
 64      selection-background-color: #00ff00;
 
 65  }
 
 66  
 
 67  QLineEdit {
 
 68      border: 2px solid #00802b;
 
 69      border-radius: 4px;
 
 70      /* padding: 0 8px; */
 
 71      /* font: Courier; */
 
 72      /* color: #00ff00; */
 
 73      /* background: #000000; */
 
 74      selection-background-color: darkgray;
 
 75  }
 
 76  
 
 77  QTreeView {
 
 78      border: 2px solid #00802b;
 
 79      alternate-background-color: #0f0f0f;
 
 80  }
 
 81  
 
 82  QHeaderView::section {
 
 83       color: #00ff00;
 
 84       padding-left: 4px;
 
 85       background-color: #000000;
 
 86       border: 1px solid #00802b;
 
 87  }
 
 88  
 
 89  QPushButton {
 
 90       border-style: outset;
 
 91       border-width: 2px;
 
 92       border-radius: 4px;
 
 93       border-color: #00802b;
 
 94       padding: 4px;
 
 95  }
 
 96  
 
 97  QComboBox {
 
 98      color: #00ff00;
 
 99      background: #000000;
 
100      border-radius: 2px;
 
101      border: 2px solid #00802b;
 
102      selection-color: #000000;
 
103      selection-background-color: #00ff00;
 
104  }
 
105  
 
106  QMenuBar {
 
107      color: #00ff00;
 
108      background-color: #000000;
 
109      selection-color: #000000;
 
110      selection-background-color: #00ff00;
 
111      border: 2px solid #00802b;
 
112  }
 
113  
 
114  QMenuBar::item {
 
115      color: #00ff00;
 
116      background-color: #000000;
 
117  }
 
118  
 
119  QMenuBar::item:selected {
 
120      color: #00ff00;
 
121      background-color: #000000;
 
122  }
 
123  
 
124  QMainWindow::separator {
 
125       width: 4px;
 
126       height: 4px;
 
127       background: #00802b;
 
128  }
 
129  
 
130  QMainWindow::separator:hover {
 
131       background: #00ff00;
 
132  }
 
133  
 
134  QSplitter::handle {
 
135       width: 6px;
 
136       height: 6px;
 
137       background: #000000;
 
138  }
 
139  
 
140  QSplitter::handle:hover {
 
141       background: #00ff00;
 
142  }
 
143  
 
144  ''' 
145  
 
146  defcolors = qt_matrix 
147  
 
148 -def getDefaultColors():
149 return qt_matrix
150