Skip to content

Commit

Permalink
fine-tuning of one-by-one outer rings
Browse files Browse the repository at this point in the history
  • Loading branch information
kupiqu committed Nov 23, 2019
1 parent 305dc36 commit cab5f17
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

project(sierrabreezeenhanced)
set(PROJECT_VERSION "0.6.1")
set(PROJECT_VERSION "0.6.2")
set(PROJECT_VERSION_MAJOR 0)

cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
V0.6.2
---------

* Fine-tuning of one-by-one outer rings

V0.6.1
---------

Expand Down
24 changes: 12 additions & 12 deletions breezebutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace Breeze
case DecorationButtonType::Close:
{
const QColor button_color = QColor(252, 87, 83);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(110) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(115) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -250,7 +250,7 @@ namespace Breeze
case DecorationButtonType::Maximize:
{
const QColor button_color = QColor(51, 199, 72);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(115) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -313,7 +313,7 @@ namespace Breeze
case DecorationButtonType::Minimize:
{
const QColor button_color = QColor(253, 188, 64);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(130) : button_color.darker(190) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -351,7 +351,7 @@ namespace Breeze
case DecorationButtonType::OnAllDesktops:
{
const QColor button_color = QColor(125, 209, 200);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(200) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -446,7 +446,7 @@ namespace Breeze
case DecorationButtonType::KeepBelow:
{
const QColor button_color = QColor(255, 137, 241);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -562,7 +562,7 @@ namespace Breeze
case DecorationButtonType::ContextHelp:
{
const QColor button_color = QColor(102, 156, 246);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1351,7 +1351,7 @@ namespace Breeze
case DecorationButtonType::Close:
{
const QColor button_color = QColor(252, 87, 83);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(115) : button_color.darker(150) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1391,7 +1391,7 @@ namespace Breeze
case DecorationButtonType::Maximize:
{
const QColor button_color = QColor(51, 199, 72);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(115) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1446,7 +1446,7 @@ namespace Breeze
case DecorationButtonType::Minimize:
{
const QColor button_color = QColor(253, 188, 64);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(130) : button_color.darker(190) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1484,7 +1484,7 @@ namespace Breeze
case DecorationButtonType::OnAllDesktops:
{
const QColor button_color = QColor(125, 209, 200);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(200) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1586,7 +1586,7 @@ namespace Breeze
case DecorationButtonType::KeepBelow:
{
const QColor button_color = QColor(255, 137, 241);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down Expand Up @@ -1698,7 +1698,7 @@ namespace Breeze
case DecorationButtonType::ContextHelp:
{
const QColor button_color = QColor(102, 156, 246);
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(125) : button_color.darker(200) );
QPen button_pen( qGray(titleBarColor.rgb()) < 100 ? button_color.lighter(120) : button_color.darker(175) );
button_pen.setJoinStyle( Qt::MiterJoin );
button_pen.setWidthF( 1.7*qMax((qreal)1.0, 20/width ) );

Expand Down

0 comments on commit cab5f17

Please sign in to comment.