-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow WidgetTab to use artwork tabs #2599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 35 commits
6553624
7153709
d996400
f071393
312764b
7ad9e32
3f72119
466bb90
921c55e
857b6ed
3f09440
fc15755
7aad86e
d9edef3
dccf9f4
37d9d36
1f0d846
816dedb
2bbd583
813ef95
fa99562
f201c50
3549e07
179008f
e124afa
efac64c
d6c72ed
6c58450
d9ca75c
9256ed0
b75969e
5b162c0
4217da7
0fed0b5
097124f
355698a
08e9744
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,35 +99,18 @@ void GroupBox::updatePixmap() | |
| QColor bg_color = QApplication::palette().color( QPalette::Active, | ||
|
||
| QPalette::Background ); | ||
| QPixmap pm( size() ); | ||
| pm.fill( bg_color/*.dark( 132 )*/ ); | ||
| pm.fill( bg_color ); | ||
|
|
||
| QPainter p( &pm ); | ||
|
|
||
| // outer rect | ||
| p.setPen( bg_color.dark( 150 ) ); | ||
| p.drawRect( 0, 0, width() - 1, height() - 1 ); | ||
|
|
||
| // brighter line at bottom/right | ||
| p.setPen( bg_color.light( 150 ) ); | ||
| p.drawLine( width() - 1, 0, width() - 1, height() - 1 ); | ||
| p.drawLine( 0, height() - 1, width() - 1, height() - 1 ); | ||
|
|
||
| // draw groupbox-titlebar | ||
| QLinearGradient g( 0, 0, 0, m_titleBarHeight ); | ||
| g.setColorAt( 0, bg_color.darker( 250 ) ); | ||
| g.setColorAt( 0.1, bg_color.lighter( 120 ) ); | ||
| g.setColorAt( 1, bg_color.darker( 250 ) ); | ||
| p.fillRect( 2, 2, width() - 4, m_titleBarHeight, g ); | ||
|
|
||
| // draw line below titlebar | ||
| p.setPen( bg_color.dark( 400 ) ); | ||
| p.drawLine( 1, m_titleBarHeight + 1, width() - 3, m_titleBarHeight + 1 ); | ||
|
|
||
| // black inner rect | ||
| p.drawRect( 1, 1, width() - 3, height() - 3 ); | ||
|
|
||
| p.fillRect( 1, 1, width() - 2, m_titleBarHeight + 1, bg_color.darker( 150 ) ); | ||
|
|
||
| //p.setPen( QColor( 255, 255, 255 ) ); | ||
| // draw text | ||
| p.setPen( palette().color( QPalette::Active, QPalette::Text ) ); | ||
| p.setFont( pointSize<8>( font() ) ); | ||
| p.drawText( 22, m_titleBarHeight, m_caption ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liushuyu will this commit cause problems with the translation service you're managing?