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)
This commit is contained in:
Larry Shaffer 2013-03-25 18:52:17 -06:00
parent 5b7c895138
commit 4d0be59c96

View File

@ -233,6 +233,7 @@ 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;"
@ -240,6 +241,7 @@ void QgsColorButton::setButtonBackground()
" 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);"