Skip to content
Permalink
Browse files

Remove interior button focus color for QgsColorButton wells

- 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 4d0be59c961d1c0536ad0334c5c4cb617fa30ce5
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgscolorbutton.cpp
@@ -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);"
@@ -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);"

0 comments on commit 4d0be59

Please sign in to comment.
You can’t perform that action at this time.