Skip to content

Commit

Permalink
Remove interior button focus color for QgsColorButton wells
Browse files Browse the repository at this point in the history
- Focus color tinted button's set color on platforms like Ubuntu
- Border should be updated with OS-style focus color when button in focus (currently no focus hint)
  • Loading branch information
dakcarto committed Mar 26, 2013
1 parent 5b7c895 commit 4d0be59
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgscolorbutton.cpp
Expand Up @@ -233,13 +233,15 @@ void QgsColorButton::setButtonBackground()

//QgsDebugMsg( QString( "%1" ).arg( bkgrd ) );

// TODO: get OS-style focus color and switch border to that color when button in focus
setStyleSheet( QString( "QgsColorButton{"
" %1"
" background-position: top left;"
" background-origin: content;"
" background-clip: content;"
" padding: 2px;"
" margin: %2;"
" outline: none;"
" border-style: outset;"
" border-width: 1px;"
" border-color: rgb(%3,%3,%3);"
Expand All @@ -251,6 +253,7 @@ void QgsColorButton::setButtonBackground()
" background-clip: content;"
" padding: 1px;"
" margin: %2;"
" outline: none;"
" border-style: inset;"
" border-width: 2px;"
" border-color: rgb(128,128,128);"
Expand Down

0 comments on commit 4d0be59

Please sign in to comment.