Results 1 to 15 of 26
Thread: List of Classes and Objects
-
23-03-2010, 08:33 #1
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 18
List of Classes and Objects
List of classes and objects being used in bluesky.qss
-----------------------------------------------------
QMainWindow
QWidget
QDialog
TextBrowser
QAbstractItemView
QTextEdit
QWidget#MainWindowServerTabsWidget
QWidget#MainWindowChatWidget
------- Splitter -------
QSplitter::handle
QSplitter::handle:horizontal
QSplitter::handle:vertical
QLineEdit
ChatLineEdit
------- PushButtons -------
You can use sub-controls hover, disabled and pressed.
Example:
------- MenuBar and Menu -------Code:QPushButton { background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop: 0 #6a96b9, stop: 1 #c2d7e1); border: 1px solid #0a057b; border-radius: 3px; padding-left: 14px; padding-right: 14px; padding-top: 3px; padding-bottom: 3px; }
for the MenuBar and Menu use sub-controls like hover, selected, disabled
QMenuBar
QMenuBar::item
for example
QMenuCode:QMenuBar::item:selected { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #a5d3e8, stop: 1 #e9edef); color: #000; }
QMenu::item
QMenu::indicator
QMenu::indicator:non-exclusive:checked
QMenu::separator
------- ComboBox -------
QComboBox
QComboBox:!editable:on
QComboBox::drop-down:editable:on
QComboBox:on
QComboBox QAbstractItemView
For example to enlarge the utcLocalComboBox a bit:
------- ListView -------Code:QComboBox#utcLocalComboBox { padding-left: 14px; padding-right: 7px; }
In the ListView the items have following sub-controls: selected:active and selectd:!active (!=not)
QListView
QListView::item
for example
QListWidget#identitiesListWidgetCode:QListView::item:selected:active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #505c78, stop: 1 #6f80aa); color: #fff; border: 1px solid transparent; } QListView::item:selected:!active { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #c2d7e1, stop: 1 #ccc); color: #0a057b; border: 1px solid transparent; }
Do the same with ::indicator:unchecked & ::indicator:checked/undchecked:hover
QListWidget#pluginsListWidget::indicator:checked
QListView#ServerGroupsListView::indicator:checked
------- ToolBar -------
QToolBar
------- ToolButtons -------
Here found a list of all ToolButtons that i customize
QToolButton
QToolButton[popupMode="1"]
QToolButton::menu-button
QToolButton#newBookmarkButton
QToolButton#newBookmarkFolderButton
QToolButton#removeBookmarkButton
QToolButton#serverQueryRunButton
QToolButton#serverQuerySingleStepsButton
QToolButton#serverQueryStopButton
QToolButton#serverQueryRestartButton
QToolButton#serverQueryAdvancedButton
QToolButton#serverQueryClearHighlightButton
QToolButton#newSQScriptButton
QToolButton#updateSQScriptButton
QToolButton#removeSQScriptButton
QToolButton#idAddButton
QToolButton#idRemoveButton
QToolButton#idSelectDefaultButton
QToolButton#idImportButton
QToolButton#idExportButton
QToolButton#addGroupButton
QToolButton#removeGroupButton
QToolButton#renameGroupButton
QToolButton#displayClientsButton
QToolButton#addClientButton
QToolButton#removeClientButton
QToolButton#makeCurrentChannelDefaultToolButton
QToolButton#improvedIdentityQualityButton
QToolButton#toolButtonIcon
QToolButton#TextFormatButton
QToolButton#searchClearButton
QToolButton#appScanImportButton
QToolButton#appScanReloadButton
QToolButton#fbDirUpButton
QToolButton#fbRootButton
QToolButton#fbRefreshButton
QToolButton#fbUploadButton
QToolButton#fbDownloadButton
QToolButton#fbCreateDirectoryButton
QToolButton#fbDeleteButton
QToolButton#fbFilterButton
QToolButton#descEditButton
QToolButton#fbViewIconsButton
QToolButton#fbViewListButton
QToolButton#filterGoButton
QToolButton#clientUpdateButton
QToolButton#filterClearButton
QToolButton#banAddButton
QToolButton#banRemoveButton
QToolButton#banEditButton
QToolButton#complainRemoveButton
QToolButton#foregroundColorSelectButton
QToolButton#backgroundColorSelectButton
QToolButton#EmoticonButton
QToolButton#iconToolButton
QToolButton#toolButtonBold
QToolButton#toolButtonItalic
QToolButton#toolButtonUnderLine
QToolButton#toolButtonFColor
------- TabBar -------
QTabBar
you can make the Tabs bigger when it´s selected like this, use it for Top and Bottom
for example
------- SpinBox -------Code:QTabBar::tab:selected:top { border-top-color: #0a057b; border-top-left-radius: 3px; border-top-right-radius: 3px; margin-top: 3px; }
QSpinBox
QDoubleSpinBox#delayPTTSpinBox
------- TreeView -------
In the TreeView you can set an alternate background
for example
QTreeViewCode:QTreeView { alternate-background-color: #d4eefb; border: 1px solid #000; show-decoration-selected: 1; } TreeView { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #c2d7e1, stop:1 #eef5f9); qproperty-alternatingRowColors: 1; color:#000; border: none; }
QTreeView::item
At this place i have to thank _,,.->DarkCode<-.,,_ for his help, to customize the TreeView!!!
If u want to customize QTreeView::branch, try this
Do the same with ::indicator:unchecked & ::indicator:checked/undchecked:hoverCode:QTreeView::branch:hover { background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6a96b9, stop: 1.0 #c2d7e1); } /* QTreeView::branch:selected:!active -> wird vom :active übernommen */ QTreeView::branch:selected { background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop: 0 #505c78, stop: 1 #6f80aa); } QTreeView::branch:has-siblings:!adjoins-item { border-image: url(styles/bluesky/treeviewS0.png) 0; } QTreeView::branch:has-siblings:adjoins-item { border-image: url(styles/bluesky/treeviewW0.png) 0; } QTreeView::branch:!has-children:!has-siblings:adjoins-item { border-image: url(styles/bluesky/treeviewF0.png) 0; } QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(styles/bluesky/treeviewP0.png); } QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings { border-image: none; image: url(styles/bluesky/treeviewM0.png); }
QTreeView#eventsTreeView::indicator:checked
QTreeView#permissionsTreeView::indicator:checked
QTreeWidget#appsTreeWidget::indicator:checked
QTreeWidget#clientsTreeWidget::indicator:checked
------- ScrollBar -------
Do the same with QScrollBar::horizontal
QScrollBar:vertical
QScrollBar::handle:vertical
QScrollBar::add-line:vertical
QScrollBar::sub-line:vertical
For the arrows, you must use pictures
for example
QScrollBar::up-arrow:verticalCode:QScrollBar::up-arrow:vertical { background: url("styles/bluesky/up_arrow.png"); background-repeat: none; left: 3px; top: 5px; }
QScrollBar::down-arrow:vertical
QScrollBar::add-page:vertical
QScrollBar::sub-page:vertical
------- HeaderView -------
QHeaderView::section
------- TableView -------
Example setting an alternate background:
QTableViewCode:QTableView { alternate-background-color: #d4eefb; border: 1px solid #000; } QTableView { selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #c2d7e1, stop:1 #e9edef); selection-color: #0a057b; qproperty-alternatingRowColors: 1; border: 1px solid #88b4d5; gridline-color: #88b4d5; }
QTableView::item
QStatusBar
Excluding background for specific elements because some UI controls because there are issues with linear gradient on Linux, Plastique and Cleanlooks:
QLabel
QCheckBox
QRadioButton
QGroupBox
QSlider
HeadlineLabel
QFrame#bookmarksTopFrame
QWidget#advancedWidget
QWidget#statusChangeWidget
QWidget#connectToWidget
QWidget#switchToWidget
QWidget#disableWidget
QWidget#activateWidget
QWidget#recordingWidget
ImprovedTabBarCloseButton
QWidget#avatarWidget
QWidget#ToolbarStretcher
QStackedWidget
one color used without lineargradient
QWidget#ConnectionInfoDialog
FriendFoeManager
ServerLogView
ClientLogView
FileBrowser
BookmarksManager
QWidget#UrlCatcherViewer
QWidget#ServerConnectionInfoDialog
LogDisplay
QDialog#BanDialog
QWidget#addPropertiesWidget
EmoticonsDisplay
QWidget#OfflineMessagesDialog
QWidget#sound3Dwidget
UserVolumeWidget
QWidget#sound3DTestWidget
QWidget#CustomizeToolbar
QWidget#ServerQueryView
QTextEdit#pluginDescTextEdit
QTextEdit#descriptionTextEdit
QTextEdit#vserverWelcomeTextEdit
QTextEdit#changeLogTextEdit
MainWindowServerTabsWidget
MainWindowChatWidget
Disabled Elements
QLineEdit:disabled
QComboBox:disabled
QSpinBox:disabled
QCheckBox:disabled
QRadioButton:disabled
QTextEdit:disabled
------- GroupBox------
Do the same with ::indicator:unchecked & ::indicator:checked/unchecked:hover
QGroupBox#advancedGroupBox::indicator:checked
------- SizeGrip -------
Example exchanging the sizegrip image:
InfoFrameCode:QSizeGrip { background-color: transparent; image: url("styles/bluesky/sizegrip.png"); width: 16px; height: 16px; }
QTextEdit#ChatTab
------- Setup Wizard -------
QWizard QWidget
QWizard QLabelLast edited by Arya_79; 03-05-2010 at 11:51.
-
23-03-2010, 12:43 #2
-= TeamSpeak Lover =-
- Join Date
- Apr 2004
- Location
- CT
- Posts
- 98
very nice! This will be helpful to many!
-
07-04-2010, 12:52 #3
-
10-04-2010, 15:36 #4
-= TeamSpeak User =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 18
very good work

do you have an update for QT 4.6.2 "?
would be great ..
Thank you very much ...
E.O.L. BioHaZaRD
-
12-04-2010, 14:41 #5
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 18
Here u found the new link to Qt Stylesheet documentation...
http://qt.nokia.com/doc/4.6/stylesheet-examples.html
Have nice day
greetz AryaLast edited by Arya_79; 16-04-2010 at 07:13.
-
22-04-2010, 18:41 #6
-= TeamSpeak User =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 18
hi Leutz
first thanks Arya_79 for the link
is it true that the
and not been writingCode:QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(styles/bluesky/treeviewP0.png); }
is !?!Code:QTreeView::branch:closed:has-children:!has-siblings, QTreeView::branch:closed:has-children:has-siblings { border-image: none; image: url(styles/bluesky/treeviewP0.png); }
E.O.L. BioHaZaRD
-
22-04-2010, 18:48 #7
Yes.
...............
-
14-07-2010, 19:20 #8
-= TeamSpeak User =-
- Join Date
- Jul 2010
- Location
- Earth
- Posts
- 5
Nice work here,
Question, in the QTextEdit#ChatTab area, how would I go about editing the font color of the links and the user names, not the basic font color since that I already have done.
-
16-07-2010, 07:34 #9
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 18
Sorry this is hard coded and u can´t change the font colors...
-
03-08-2010, 20:39 #10
There's a new one that is missing here.
QToolButton#copyGroupButton
-
17-01-2011, 15:32 #11
-= TeamSpeak Lover =-
- Join Date
- Jan 2011
- Location
- France
- Posts
- 51
Hi,
Thanks for this work.
How can i get all subcommand of Qwidget? Like Qwidget#PermissionsWidget wich not appears here
-
12-10-2011, 08:50 #12
-= TeamSpeak User =-
- Join Date
- Mar 2011
- Posts
- 6
I must be really stupid but I want to make a skin but this is to much for me. Yea I'm stupid.
-
11-12-2011, 15:05 #13
-= TeamSpeak User =-
- Join Date
- Dec 2011
- Posts
- 1
Thank you for your post. It's very usefull.
-
25-03-2012, 23:31 #14
-= TeamSpeak User =-
- Join Date
- Mar 2012
- Posts
- 5
Stumbled across this after endlessly searching for how to refer to obscure windows. Best. Thing. Ever.
Originally Posted by florian_fr40
-
12-05-2012, 15:01 #15
-= TeamSpeak User =-
- Join Date
- May 2012
- Posts
- 2
Have there been any news regarding the link and user colors in QTextEdit#ChatTab? I would like to create a dark transparent theme, but red and blue are in that constellation very difficult to read.
Already tried this, but i didnt have success ....
Is it still hardcoded?QPalette::Link#ChatTab {
color: #bcbcbc;
font-weight: bold;
}
QPalette::LinkVisited#ChatTab {
color: #bcbcbc;
font-weight: bold;
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


Reply With Quote


