2009-12-30 12:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbide/ideactions.prg
  * contrib/hbide/ideeditor.prg
  * contrib/hbide/idestylesheets.prg
    + Some visual enhancements.
This commit is contained in:
Pritpal Bedi
2009-12-30 20:09:45 +00:00
parent c2af02cecc
commit ec8bdf092e
4 changed files with 56 additions and 5 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-30 12:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/ideactions.prg
* contrib/hbide/ideeditor.prg
* contrib/hbide/idestylesheets.prg
+ Some visual enhancements.
2009-12-30 10:40 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbide/hbide.prg
* contrib/hbide/ideactions.prg

View File

@@ -78,7 +78,7 @@ FUNCTION buildToolBar( oWnd, oIde )
oTBar:imageWidth := 22
oTBar:imageHeight := 22
oTBar:create( , , { 0, oWnd:currentSize()[ 2 ]-60 }, { oWnd:currentSize()[ 1 ], 60 } )
* oTBar:setStyleSheet( GetStyleSheet( "QToolBar" ) )
oTBar:setStyleSheet( GetStyleSheet( "QToolBar" ) )
oTBar:oWidget:setMaximumHeight( 28 )

View File

@@ -187,6 +187,8 @@ METHOD IdeEditor:create( oIde, cSourceFile, nPos, nHPos, nVPos )
::nBlock := ::qCursor:blockNumber()
::nColumn := ::qCursor:columnNumber()
::qTabWidget:setStyleSheet( GetStyleSheet( "QTabWidget" ) )
RETURN Self
/*----------------------------------------------------------------------*/

View File

@@ -154,8 +154,9 @@ FUNCTION GetStyleSheet( cWidget )
CASE cWidget == "QToolBar"
aadd( txt_, 'QToolBar { ' )
aadd( txt_, ' height: 24; ' )
aadd( txt_, ' spacing: 3px; /* spacing between items in the tool bar */ ' )
aadd( txt_, ' background-color: qlineargradient(x1:0, y1:1, x2:0, y2:0, ' )
aadd( txt_, ' stop:0 lightgray, stop:1 darkgray); ' )
aadd( txt_, ' /*spacing: 3px; spacing between items in the tool bar */ ' )
aadd( txt_, ' } ' )
CASE cWidget == "QTreeWidget"
@@ -216,8 +217,10 @@ FUNCTION GetStyleSheet( cWidget )
aadd( txt_, ' stop: 0 #FAFBFE, stop: 1 #DCDEF1); ' )
aadd( txt_, '} ' )
aadd( txt_, ' QListView { ' )
aadd( txt_, ' background: qlineargradient(spread:pad, x1:0.755727, y1:0.864, x2:1, y2:0,' )
aadd( txt_, ' stop:0 rgba(214, 209, 142, 255), stop:1 rgba(255, 255, 255, 255));' )
aadd( txt_, ' background: qlineargradient(x1: 1, y1: 0, x2: 0, y2: 0, ' )
aadd( txt_, ' stop: 0 rgba(173, 173, 173, 255), stop:1 rgba(255, 255, 255, 255)); ' )
* aadd( txt_, ' background: qlineargradient(spread:pad, x1:0.755727, y1:0.864, x2:1, y2:0,' )
* aadd( txt_, ' stop:0 rgba(214, 209, 142, 255), stop:1 rgba(255, 255, 255, 255));' )
aadd( txt_, '} ' )
CASE cWidget == "QMainWindow"
@@ -232,6 +235,46 @@ FUNCTION GetStyleSheet( cWidget )
aadd( txt_, ' background: red; ' )
aadd( txt_, '} ' )
CASE cWidget == "QTabWidget"
aadd( txt_, 'QTabWidget::pane { /* The tab widget frame */ ' )
aadd( txt_, ' border-top: 2px solid #C2C7CB; ' )
aadd( txt_, '} ' )
aadd( txt_, 'QTabWidget::tab-bar { ' )
aadd( txt_, ' background: qlineargradient(x1:0, y1:1, x2:0, y2:0, ' )
aadd( txt_, ' stop:0 lightgray, stop:1 darkgray); ' )
aadd( txt_, ' left: 5px; /* move to the right by 5px */ ' )
aadd( txt_, '} ' )
aadd( txt_, 'QTabBar { ' )
aadd( txt_, ' background: qlineargradient(x1:0, y1:1, x2:0, y2:0, ' )
aadd( txt_, ' stop:0 lightgray, stop:1 darkgray); ' )
aadd( txt_, '} ' )
aadd( txt_, 'QTabBar::tab { ' )
aadd( txt_, ' background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, ' )
aadd( txt_, ' stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, ' )
aadd( txt_, ' stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3); ' )
aadd( txt_, ' border: 2px solid #C4C4C3; ' )
aadd( txt_, ' border-bottom-color: #C2C7CB; /* same as the pane color */ ' )
aadd( txt_, ' border-top-left-radius: 4px; ' )
aadd( txt_, ' border-top-right-radius: 4px; ' )
aadd( txt_, ' min-width: 8ex; ' )
aadd( txt_, ' padding: 2px; ' )
aadd( txt_, '} ' )
aadd( txt_, ' QTabBar::tab:selected { ' )
aadd( txt_, ' background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, ' )
aadd( txt_, ' stop: 0 #fafafa, stop: 0.4 #f4f4f4, ' )
aadd( txt_, ' stop: 0.5 #e7e7e7, stop: 1.0 #fafafa); ' )
aadd( txt_, ' } ' )
aadd( txt_, ' QTabBar::tab:hover { ' )
aadd( txt_, ' background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, ' )
aadd( txt_, ' stop: 0 yellow, stop: 0.4 #f4f4f4, ' )
aadd( txt_, ' stop: 0.5 #e7e7e7, stop: 1.0 #fafafa); ' )
aadd( txt_, ' } ' )
aadd( txt_, ' QTabBar::tab:selected { ' )
aadd( txt_, ' border-color: #9B9B9B; ' )
aadd( txt_, ' border-bottom-color: #C2C7CB; /* same as pane color */ ' )
aadd( txt_, ' } ' )
ENDCASE
aeval( txt_, {|e| s += trim( e ) + chr( 13 ) + chr( 10 ) } )