Initial commit (Vesion 0.1)
[tablet-suite] / src / style / styleTabletSuite.py
diff --git a/src/style/styleTabletSuite.py b/src/style/styleTabletSuite.py
new file mode 100644 (file)
index 0000000..493cdd5
--- /dev/null
@@ -0,0 +1,606 @@
+from ui.pcsuiutils import *
+
+STYLESHEET = ''' 
+            QPushButton {
+                min-height:33px; 
+                min-width:64px; 
+                max-height:33px;
+                max-width:64px;
+                border: none; 
+                qproperty-icon: none; 
+                qproperty-focusPolicy: NoFocus;
+                background-image: url(''' + BACKUP_BUTTON_DEFAULT +''');
+            }
+            
+            QPushButton::pressed {
+                background-image: url(''' + BACKUP_BUTTON_DEFAULT_CLICKED + ''');
+            }
+            
+            QPushButton::enabled {
+                color:black;
+            }
+            
+            QPushButton#tsButton {
+                color : #636060;
+                background-image: url(''' + BUTTON_BG +''');
+                min-height:33px; 
+                min-width:91px;
+                max-height:32px;
+                max-width:93px;
+                border: none; 
+                qproperty-focusPolicy : NoFocus;
+                qproperty-icon: none; 
+            }
+            
+            QPushButton#tsButton::pressed {
+                background-image: url(''' + BUTTON_BG_CLICKED + ''');
+            }
+            
+            QPushButton#smallButton {
+                color : gray;
+                border-image: url(''' + BUTTON_BG +''');
+                min-height:20px; 
+                min-width:34px;
+                max-height:20px;
+                max-width:34px;
+                border: none; 
+                qproperty-focusPolicy : NoFocus;
+                qproperty-icon: none; 
+                background:transparent;
+            }
+            
+            QPushButton#smallButton::pressed {
+                border-image: url(''' + BUTTON_BG_CLICKED + ''');
+                background:transparent;
+            }
+            
+            QMainWindow {
+                background-image: url(''' + BACKGROUND_IMAGE + ''');
+            }
+            
+            PcsBackup {
+                background-image: url('''+ BACKUP_BG +''')
+            }
+            
+            PcsRestoreBackupUi {
+                background-image: url('''+ RESTORE_BG +''')
+            }
+            
+            PcsBackupManagerUi{
+                background-image: url('''+ MANAGER_BG +''')
+            }
+            
+            QListWidget {
+                selection-background-color : transparent;
+            }
+            
+            QMenuBar::item {
+                background: transparent;
+            }
+            
+            QMenuBar {
+                background: transparent;
+            }
+            
+            QRadioButton{
+                qproperty-focusPolicy: NoFocus;
+                border-image: url('''+ CHECKBOX_BORDER +''');
+                min-height: 38px; 
+                max-height: 38px;
+            }
+            
+            QRadioButton::indicator:unchecked {
+                image: url(''' + CHECKBOX_UNCHECKED + ''');
+            }
+            
+            QRadioButton::indicator:checked {
+                image: url('''+ CHECKBOX_CHECKED +''');
+            }
+            
+            QCheckBox{
+                border-image: url('''+ CHECKBOX_BORDER +''');
+                qproperty-focusPolicy: NoFocus;
+                spacing: 10px;
+                min-height: 38px; 
+                max-height: 38px;
+                min-width: 230px; 
+                max-width: 230px;
+            }
+            
+            QCheckBox::indicator:unchecked {
+                image: url(''' + CHECKBOX_UNCHECKED + ''');
+            }
+            
+            QCheckBox::indicator:checked {
+                image: url('''+ CHECKBOX_CHECKED +''');
+            }
+            
+            QScrollArea {
+                background: none;
+                margin-top : 0px;
+                min-width: 270px;
+                max-width: 270px; 
+                min-height: 243px; 
+                max-height: 243px;
+                border-image :url('''+ COPY_BORDER +''');
+            }
+            
+            QScrollArea#restoreScroll {
+                margin-top : 0px;
+                min-width: 270px;
+                max-width: 270px; 
+                min-height: 150px; 
+                max-height: 150px;
+                border-image :url('''+ COPY_BORDER +''');
+            }
+        
+            QListWidget {
+                border-style: inset;
+            }
+        
+            QInputDialog{
+                background-image: url(''' + DEFAULT_BG + ''');
+            }
+      
+            QScrollBar::sub-line, QScrollBar::add-line{
+                background:none;
+            } 
+            
+            QScrollBar::add-page, QScrollBar::sub-page{
+                background:none;
+            }
+           
+            QScrollBar:vertical { 
+                border-image: url(''' + SCROLL_BASE_V + '''); 
+                background:none;
+                margin: 0px;
+                min-width:18px;
+                max-width:18px;
+                border: 1px solid grey;
+            }
+            
+            QScrollBar:handle:vertical { 
+                border-image: url(''' + SCROLL_HANDLE_V +''');
+            }
+            
+            QScrollBar:horizontal{ 
+                border-image: url(''' + SCROLL_BASE_H + '''); 
+                background:none;
+                margin: 0px;
+                min-height:18px;
+                max-height:18px;
+                border: 1px solid grey;
+            }
+            
+            QScrollBar:handle:horizontal { 
+                border-image: url(''' + SCROLL_HANDLE_H +''');
+            }
+                        
+            QPushButton#buttonBrowse {
+                min-height:25px; 
+                min-width:25px; 
+                max-height:25px;
+                max-width:25px;
+                border: none; 
+                qproperty-icon: none; 
+                qproperty-focusPolicy : NoFocus;
+                background-image: url(''' + BROWSE_BUTTON +''');
+            }
+            
+            QLineEdit {
+                border-image: url(''' + BACKUP_NAME_BORDER +''');
+                color: white;
+            }
+            
+            QLineEdit#backupNameField {
+                border-image: url(''' + BACKUP_NAME_BORDER +''');
+                color: white;
+                min-height:20px; 
+                min-width:171px; 
+                max-height:20px;
+                max-width:171px;
+            }
+            
+            QLineEdit#pathField {
+                border-image: url(''' + PATH_BORDER +''');
+                color: white;
+                min-height:22px; 
+                min-width:241px; 
+                max-height:22px;
+                max-width:241px;
+            }
+            
+            QLineEdit#ipField {
+                border-image: url(''' + PATH_BORDER +''');
+                color: white;
+                min-height:22px; 
+                min-width:215px; 
+                max-height:22px;
+                max-width:215px;
+            }
+            
+            QProgressBar#progressBarWizard {
+                min-height: 18px; 
+                min-width:  353px; 
+                max-height: 18px;
+                max-width:  353px;
+                border-image: url(''' + PROGRESS_BAR_BORDER +''');
+            }
+            
+            QProgressBar#progressBarWizard::chunk{
+                background-image:url(''' + PROGRESS_BAR_CHUNK +''');
+                max-height: 18px;
+                margin: 0px;
+            }
+            
+            QProgressBar#progressBarDialog {
+                min-height: 18px; 
+                min-width:  260px; 
+                max-height: 18px;
+                max-width:  260px;
+                border-image: url(''' + PROGRESS_BAR_BORDER +''');
+            }
+            
+            QProgressBar#progressBarDialog::chunk{
+                background-image:url(''' + PROGRESS_BAR_CHUNK_DIALOG +''');
+                max-height: 18px;
+                margin: 0px;
+            }
+            
+            QProgressDialog#progressDialog{
+                background-image:url(''' + DEFAULT_BG +''');
+            }
+            
+            QWidget#DeviceListPanel {
+                background-color: transparent;
+                min-height: 265px; 
+                min-width:  370px; 
+                max-height: 265px;
+                max-width:  370px;
+            }
+            
+            QTabWidget#tabBar::pane {
+                border-top: 10px solid transparent;
+                border-left: 40px solid transparent;
+                background-color: transparent;
+            }
+            
+            QTableView#ListView {
+                border-image: url(''' + TABLE_BORDER + ''');
+                background-color: transparent;
+                qproperty-focusPolicy: NoFocus;
+                color: white; 
+                alternate-background-color: #afafaf;
+                padding: 0px;
+                selection-background-color: #ced1cc;
+                selection-color: #1d544f;
+                show-decoration-selected: 0;
+                border: 2px;
+                min-height: 200px; 
+                max-height: 200px;
+                min-width:  350px; 
+                max-width:  350px;
+                
+            }
+            
+            QTableView#ipList {
+                border-image: url(''' + IP_LIST_BORDER + ''');
+                background-color: transparent;
+                qproperty-focusPolicy: NoFocus;
+                color: white; 
+                alternate-background-color: #afafaf;
+                padding: 0px;
+                selection-background-color: #ced1cc;
+                selection-color: #1d544f;
+                show-decoration-selected: 0;
+                border: 2px;
+                min-height: 120px; 
+                max-height: 120px;
+                min-width:  248px; 
+                max-width:  248px;
+                
+            }
+            
+            QScrollArea#listScrollArea {
+                
+            }
+            
+            QHeaderView#listHeader {
+                background-color: gray;
+                
+            }
+            
+            QHeaderView#listHeader::section {
+                border-top: 10px solid transparent;
+                border-color: transparent;
+                background-color: transparent;
+                color: Black; 
+                font: 10px;
+            }
+            
+            QTabBar#restoreTabs {
+                qproperty-focusPolicy: NoFocus;
+            }
+            
+            QTabBar#restoreTabs::tab {
+                 background-color: transparent;
+                 border: none;
+                 min-width: 215px;
+                 max-width: 215px;
+                 padding: 0px;
+                 
+            }
+             
+            QTabBar#restoreTabs::tab:selected {
+                color: white;
+            }
+
+            QTabBar#managerTabs {
+                qproperty-focusPolicy: NoFocus;
+            }
+            
+            QTabBar#managerTabs::tab {
+                 background-color: transparent;
+                 border: none;
+                 min-width: 215px;
+                 max-width: 215px;
+                 padding: 0px;
+                 
+            }
+             
+            QTabBar#managerTabs::tab:selected {
+                color: white;
+            }
+
+            QTabBar#managerTabs::tab:!selected {
+                color: black;
+            }
+            
+            QDialog#connectDialog{
+                background-image: url(''' + DEFAULT_BG + ''');
+                border: none;
+                min-height: 289px;
+                max-height: 289px;
+                min-width:  275px; 
+            }
+            
+            QDialog#viewDialog{
+                background-image: url(''' + DEFAULT_BG + ''');
+                border: none;
+                min-height: 190px;
+                max-height: 190px;
+                min-width:  300px; 
+                max-width:  300px;
+            }            
+            
+            QDialog#copyDialogToDevice{
+                background-image: url(''' + DEFAULT_BG + ''');
+                border: none;
+                min-height: 140px;
+                max-height: 140px;
+                min-width:  230px; 
+                max-width:  230px;
+            }
+            
+            QDialog#copyDialogFromDevice{
+                background-image: url(''' + DEFAULT_BG + ''');
+                border: none;
+                min-height: 110px;
+                max-height: 110px;
+                min-width:  260px; 
+                max-width:  260px;
+            }
+            
+            PcsRestoreDialog {
+                background-image: url(''' + DEFAULT_BG + ''');
+                border: none;
+                min-height: 250px;
+                max-height: 250px;
+                min-width:  300px; 
+                max-width:  300px;
+            }
+            
+            QListWidget#viewList{
+                border-image: url(''' + VIEW_BORDER + ''');
+                qproperty-focusPolicy: NoFocus;
+                padding: 5px;
+            }
+            
+            PcsProgressDialog {
+                background-image: url('''+ DEFAULT_BG +''');
+                min-height: 150px;
+                max-height: 150px;
+                min-width:  295px; 
+                max-width:  295px;                
+            }
+                   
+        '''
+        
+
+      
+        
+BACKUP_BUTTON_STYLE = '''
+
+            QPushButton {
+                color : gray;
+                min-height:35px; 
+                min-width:79px; 
+                max-height:35px;
+                max-width:79px;
+                border: none; 
+                qproperty-icon: none; 
+                qproperty-focusPolicy : NoFocus;
+                background-image: url(''' + BT_NEXT +''');
+            }
+            
+            QPushButton::pressed {
+                background-image: url(''' +BT_NEXT_CLICKED + ''');
+            }
+            
+        '''
+        
+DEFAULT_BUTTON_STYLE = '''
+
+            QPushButton {
+                min-height:33px; 
+                min-width:64px; 
+                max-height:33px;
+                max-width:64px;
+                border: none; 
+                qproperty-icon: none; 
+                qproperty-focusPolicy : NoFocus;
+                background-image: url(''' + BACKUP_BUTTON_DEFAULT +''');
+            }
+            
+            QPushButton::pressed {
+                background-image: url(''' + BACKUP_BUTTON_DEFAULT_CLICKED + ''');
+            }
+            
+            QPushButton::enabled {
+                color:black;
+            }
+            
+        '''
+SMALL_DEFAULT_BUTTON_STYLE = '''
+
+            QPushButton {
+                min-height:20px; 
+                min-width:34px; 
+                max-height:20px;
+                max-width: 34px;
+                border: none;
+                qproperty-icon: none;
+                qproperty-focusPolicy : NoFocus;
+                background-image: url(''' + SMALL_DEFAULT_BUTTON + ''')
+            }
+            
+            QPushButton::pressed {
+                background-image: url(''' + SMALL_DEFAULT_BUTTON_CLICKED + ''');
+            }
+            
+            QPushButton::enabled {
+                color:black;
+            }
+
+            '''
+
+SMALL_ICON_NEW_BACKUP_STYLE = '''
+            QPushButton {
+                min-height:25px; 
+                min-width:125px; 
+                max-height:25px;
+                max-width: 125px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_NEW_BACKUP + ''')
+            }
+
+            '''
+            
+SMALL_ICON_NEW_BACKUP_STYLE_SELECTED = '''
+            QPushButton {
+                color: white;
+                min-height:25px; 
+                min-width:125px; 
+                max-height:25px;
+                max-width: 125px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_NEW_BACKUP + ''')
+            }
+
+            '''
+            
+SMALL_ICON_MANAGER_BACKUP_STYLE = '''
+            QPushButton {
+                min-height:25px; 
+                min-width:138px; 
+                max-height:25px;
+                max-width: 138px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_MANAGER_BACKUP + ''')
+            }
+
+            '''
+
+SMALL_ICON_MANAGER_BACKUP_STYLE_SELECTED = '''
+            QPushButton {
+                color: white;
+                min-height:25px; 
+                min-width:138px; 
+                max-height:25px;
+                max-width: 138px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_MANAGER_BACKUP + ''')
+            }
+
+            '''
+
+SMALL_ICON_RESTORE_BACKUP_STYLE = '''
+            QPushButton {
+                min-height:25px; 
+                min-width:130px; 
+                max-height:25px;
+                max-width: 130px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_RESTORE_BACKUP + ''')
+            }
+
+            '''
+            
+SMALL_ICON_RESTORE_BACKUP_STYLE_SELECTED = '''
+            QPushButton {
+                color: white;
+                min-height:25px; 
+                min-width:130px; 
+                max-height:25px;
+                max-width: 130px;
+                border: none;
+                qproperty-iconSize: 25px 25px;
+                qproperty-focusPolicy : NoFocus;
+                background: transparent;
+                qproperty-icon: url(''' + SMALL_ICON_RESTORE_BACKUP + ''')
+            }
+            '''
+MESSAGE_BOX_DEFAULT = '''
+            
+            QMessageBox {
+                background-image: url('''+ DEFAULT_BG +''');
+                color: black;
+            }
+        ''' + DEFAULT_BUTTON_STYLE
+
+MESSAGE_BOX_APP = '''
+            QMessageBox {
+                background-image: url('''+ DEFAULT_BG +''');
+                color: black;
+            }
+            QAbstractButton {
+                color : #636060;
+                background-image: url(''' + BUTTON_BG +''');
+                min-height:33px; 
+                min-width:91px;
+                max-height:32px;
+                max-width:93px;
+                border: none; 
+                qproperty-icon: none;
+                qproperty-focusPolicy: NoFocus; 
+            }
+            QAbstractButton::pressed {
+                background-image: url(''' + BUTTON_BG_CLICKED + ''');
+            }
+        '''
+    
\ No newline at end of file