diff --git a/data/backgrounds/newbg.png b/data/backgrounds/newbg.png new file mode 100644 index 000000000..6cafbdaf4 Binary files /dev/null and b/data/backgrounds/newbg.png differ diff --git a/data/themes/default/add_automation.png b/data/themes/default/add_automation.png index 2d0c7ba4d..71e147425 100644 Binary files a/data/themes/default/add_automation.png and b/data/themes/default/add_automation.png differ diff --git a/data/themes/default/add_bb_track.png b/data/themes/default/add_bb_track.png index a42e8b517..fd9cb7f1d 100644 Binary files a/data/themes/default/add_bb_track.png and b/data/themes/default/add_bb_track.png differ diff --git a/data/themes/default/add_sample_track.png b/data/themes/default/add_sample_track.png index 3e9caf262..2f7500a7d 100644 Binary files a/data/themes/default/add_sample_track.png and b/data/themes/default/add_sample_track.png differ diff --git a/data/themes/default/automation.png b/data/themes/default/automation.png index 65a0a83d0..d6193e4f6 100644 Binary files a/data/themes/default/automation.png and b/data/themes/default/automation.png differ diff --git a/data/themes/default/automation_track.png b/data/themes/default/automation_track.png index 40fc9a50b..d6193e4f6 100644 Binary files a/data/themes/default/automation_track.png and b/data/themes/default/automation_track.png differ diff --git a/data/themes/default/background_artwork.png b/data/themes/default/background_artwork.png index 0f2ba9a5e..8725e664f 100644 Binary files a/data/themes/default/background_artwork.png and b/data/themes/default/background_artwork.png differ diff --git a/data/themes/default/bb_track.png b/data/themes/default/bb_track.png index 40f58e139..9e353be47 100644 Binary files a/data/themes/default/bb_track.png and b/data/themes/default/bb_track.png differ diff --git a/data/themes/default/controller.png b/data/themes/default/controller.png index 72229e955..6bd108d22 100644 Binary files a/data/themes/default/controller.png and b/data/themes/default/controller.png differ diff --git a/data/themes/default/fx_mixer.png b/data/themes/default/fx_mixer.png index 85d846268..bfde545d5 100644 Binary files a/data/themes/default/fx_mixer.png and b/data/themes/default/fx_mixer.png differ diff --git a/data/themes/default/lcd_19green.png b/data/themes/default/lcd_19green.png index d1dd66571..a154f40e9 100644 Binary files a/data/themes/default/lcd_19green.png and b/data/themes/default/lcd_19green.png differ diff --git a/data/themes/default/piano.png b/data/themes/default/piano.png index 5577fd1ec..22523893e 100644 Binary files a/data/themes/default/piano.png and b/data/themes/default/piano.png differ diff --git a/data/themes/default/progression_cubic_hermite.png b/data/themes/default/progression_cubic_hermite.png index 77be56562..1010f8735 100644 Binary files a/data/themes/default/progression_cubic_hermite.png and b/data/themes/default/progression_cubic_hermite.png differ diff --git a/data/themes/default/progression_discrete.png b/data/themes/default/progression_discrete.png index b28bb29c6..5faf0e4aa 100644 Binary files a/data/themes/default/progression_discrete.png and b/data/themes/default/progression_discrete.png differ diff --git a/data/themes/default/progression_linear.png b/data/themes/default/progression_linear.png index 8059e793f..d6193e4f6 100644 Binary files a/data/themes/default/progression_linear.png and b/data/themes/default/progression_linear.png differ diff --git a/data/themes/default/project_export.png b/data/themes/default/project_export.png index 999a415b4..13c0b9d08 100644 Binary files a/data/themes/default/project_export.png and b/data/themes/default/project_export.png differ diff --git a/data/themes/default/project_new.png b/data/themes/default/project_new.png index 828e07d0e..489548b6b 100644 Binary files a/data/themes/default/project_new.png and b/data/themes/default/project_new.png differ diff --git a/data/themes/default/project_new_from_template.png b/data/themes/default/project_new_from_template.png index 3d0f5cc1d..1353505b9 100644 Binary files a/data/themes/default/project_new_from_template.png and b/data/themes/default/project_new_from_template.png differ diff --git a/data/themes/default/project_notes.png b/data/themes/default/project_notes.png index 528a2bb36..6991b3a7e 100644 Binary files a/data/themes/default/project_notes.png and b/data/themes/default/project_notes.png differ diff --git a/data/themes/default/project_open.png b/data/themes/default/project_open.png index 7422ad333..7188b3894 100644 Binary files a/data/themes/default/project_open.png and b/data/themes/default/project_open.png differ diff --git a/data/themes/default/project_open_recent.png b/data/themes/default/project_open_recent.png index eb07bb20b..4e57b3b82 100644 Binary files a/data/themes/default/project_open_recent.png and b/data/themes/default/project_open_recent.png differ diff --git a/data/themes/default/project_save.png b/data/themes/default/project_save.png index 7fa489c0f..83c7fd7bd 100644 Binary files a/data/themes/default/project_save.png and b/data/themes/default/project_save.png differ diff --git a/data/themes/default/sample_track.png b/data/themes/default/sample_track.png index d65bc0752..754146f3e 100644 Binary files a/data/themes/default/sample_track.png and b/data/themes/default/sample_track.png differ diff --git a/data/themes/default/sbarrow_down.png b/data/themes/default/sbarrow_down.png new file mode 100644 index 000000000..56fa504c1 Binary files /dev/null and b/data/themes/default/sbarrow_down.png differ diff --git a/data/themes/default/sbarrow_down_d.png b/data/themes/default/sbarrow_down_d.png new file mode 100644 index 000000000..f8c54f32f Binary files /dev/null and b/data/themes/default/sbarrow_down_d.png differ diff --git a/data/themes/default/sbarrow_left.png b/data/themes/default/sbarrow_left.png new file mode 100644 index 000000000..d50031e30 Binary files /dev/null and b/data/themes/default/sbarrow_left.png differ diff --git a/data/themes/default/sbarrow_left_d.png b/data/themes/default/sbarrow_left_d.png new file mode 100644 index 000000000..fe246df05 Binary files /dev/null and b/data/themes/default/sbarrow_left_d.png differ diff --git a/data/themes/default/sbarrow_right.png b/data/themes/default/sbarrow_right.png new file mode 100644 index 000000000..2112ec1da Binary files /dev/null and b/data/themes/default/sbarrow_right.png differ diff --git a/data/themes/default/sbarrow_right_d.png b/data/themes/default/sbarrow_right_d.png new file mode 100644 index 000000000..39b0220cc Binary files /dev/null and b/data/themes/default/sbarrow_right_d.png differ diff --git a/data/themes/default/sbarrow_up.png b/data/themes/default/sbarrow_up.png new file mode 100644 index 000000000..2b61c257c Binary files /dev/null and b/data/themes/default/sbarrow_up.png differ diff --git a/data/themes/default/sbarrow_up_d.png b/data/themes/default/sbarrow_up_d.png new file mode 100644 index 000000000..f80d6b39b Binary files /dev/null and b/data/themes/default/sbarrow_up_d.png differ diff --git a/data/themes/default/songeditor.png b/data/themes/default/songeditor.png index 4f5203878..1f7f39c66 100644 Binary files a/data/themes/default/songeditor.png and b/data/themes/default/songeditor.png differ diff --git a/data/themes/default/step_btn_off.png b/data/themes/default/step_btn_off.png index 2948422e9..5e40d3e5a 100644 Binary files a/data/themes/default/step_btn_off.png and b/data/themes/default/step_btn_off.png differ diff --git a/data/themes/default/step_btn_off_light.png b/data/themes/default/step_btn_off_light.png index c069d5e98..f8f64bea8 100644 Binary files a/data/themes/default/step_btn_off_light.png and b/data/themes/default/step_btn_off_light.png differ diff --git a/data/themes/default/step_btn_on.png b/data/themes/default/step_btn_on.png index 7d520bc74..fc7fde9f7 100644 Binary files a/data/themes/default/step_btn_on.png and b/data/themes/default/step_btn_on.png differ diff --git a/data/themes/default/step_btn_on_100.png b/data/themes/default/step_btn_on_100.png index d3b4f15f9..3d21b87c6 100644 Binary files a/data/themes/default/step_btn_on_100.png and b/data/themes/default/step_btn_on_100.png differ diff --git a/data/themes/default/step_btn_on_yellow.png b/data/themes/default/step_btn_on_yellow.png index 827a3ca1a..cce0c10ed 100644 Binary files a/data/themes/default/step_btn_on_yellow.png and b/data/themes/default/step_btn_on_yellow.png differ diff --git a/data/themes/default/style.css b/data/themes/default/style.css index 0aed57e49..466aac8d4 100644 --- a/data/themes/default/style.css +++ b/data/themes/default/style.css @@ -89,9 +89,126 @@ pianoRoll { background-color: rgb(0, 0, 0); } -/*TrackContainerView QWidget{ - background-color: #5b6571; -}*/ +/* scrollbar: trough */ + +QScrollBar:horizontal { + border: 1px solid #131313; + background: rgb( 50,50,50 ); + height: 14px; + margin: 0px 13px; +} +QScrollBar:vertical { + border: 1px solid #131313; + background: rgb( 50,50,50 ); + width: 14px; + margin: 13px 0px; +} + +/* scrollbar: trough clicky things */ + +QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal, +QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { + background: none; +} + +QScrollBar::add-page:horizontal:pressed, QScrollBar::sub-page:horizontal:pressed, +QScrollBar::add-page:vertical:pressed, QScrollBar::sub-page:vertical:pressed { + background: rgba(0,0,0,50); +} + +/* scrollbar: handles (sliders) */ + +QScrollBar::handle:horizontal { + background: qlineargradient(spread:reflect, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #747474, stop:0.5 #c9c9c9, stop:1 #808080); + border: 1px outset #888; + border-radius: 2px; + min-width: 24px; +} + +QScrollBar::handle:horizontal:hover { + background: qlineargradient(spread:reflect, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #747474, stop:0.5 #f0f0f0, stop:1 #808080); +} + +QScrollBar::handle:horizontal:pressed { + background: qlineargradient(spread:reflect, + x1:0.5, y1:0, x2:0.5, y2:1, + stop:0 #747474, stop:1 #c9c9c9); +} + +QScrollBar::handle:vertical { + background: qlineargradient(spread:reflect, + x1:0, y1:0.5, x2:1, y2:0.5, + stop:0 #747474, stop:0.5 #c9c9c9, stop:1 #808080); + border: 1px outset #888; + border-radius: 2px; + min-height: 24px; +} + +QScrollBar::handle:vertical:hover { + background: qlineargradient(spread:reflect, + x1:0, y1:0.5, x2:1, y2:0.5, + stop:0 #747474, stop:0.5 #f0f0f0, stop:1 #808080); +} + +QScrollBar::handle:vertical:pressed { + background: qlineargradient(spread:reflect, + x1:0, y1:0.5, x2:1, y2:0.5, + stop:0 #747474, stop:1 #c9c9c9); +} + +QScrollBar::handle:horizontal:disabled, QScrollBar::handle:vertical:disabled { + background: #747474; + border-radius: 1px; + border: 1px solid rgba(0,0,0,32); +} + +/* arrow buttons */ + +QScrollBar::add-line, QScrollBar::sub-line { + background: qradialgradient(cx:0.3, cy:0.3, radius:0.8, fx:0.3, fy:0.3, stop:0 #c9c9c9, stop:1 #969696 ); + border-radius: 1px; + border: 1px solid #131313; + subcontrol-origin: margin; +} + +QScrollBar::add-line:horizontal { subcontrol-position: right; width: 12px;} +QScrollBar::sub-line:horizontal { subcontrol-position: left; width: 12px;} +QScrollBar::add-line:vertical { subcontrol-position: bottom; height: 12px;} +QScrollBar::sub-line:vertical { subcontrol-position: top; height: 12px;} + +QScrollBar::add-line:hover, QScrollBar::sub-line:hover { + background: qradialgradient(cx:0.3, cy:0.3, radius:0.8, fx:0.3, fy:0.3, stop:0 #e0e0e0, stop:0.5 #c9c9c9, stop:1 #969696 ); +} + +QScrollBar::add-line:pressed, QScrollBar::sub-line:pressed { + background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #969696, stop:0.5 #c9c9c9, stop:1 #969696 ); +} + +QScrollBar::add-line:disabled, QScrollBar::sub-line:disabled { + background: #747474; +} + +QScrollBar::left-arrow:horizontal, QScrollBar::right-arrow:horizontal, +QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical { + border: none; + background-color: none; + width: 5px; + height: 5px; +} + +QScrollBar::left-arrow:horizontal { background-image: url(resources:sbarrow_left.png);} +QScrollBar::right-arrow:horizontal { background-image: url(resources:sbarrow_right.png);} +QScrollBar::up-arrow:vertical { background-image: url(resources:sbarrow_up.png);} +QScrollBar::down-arrow:vertical { background-image: url(resources:sbarrow_down.png);} +QScrollBar::left-arrow:horizontal:disabled { background-image: url(resources:sbarrow_left_d.png);} +QScrollBar::right-arrow:horizontal:disabled { background-image: url(resources:sbarrow_right_d.png);} +QScrollBar::up-arrow:vertical:disabled { background-image: url(resources:sbarrow_up_d.png);} +QScrollBar::down-arrow:vertical:disabled { background-image: url(resources:sbarrow_down_d.png);} + TrackContainerView QFrame{ background-color: #49515b; @@ -105,25 +222,6 @@ trackOperationsWidget > QPushButton { background: none; border:none; } -/* -trackOperationsWidget > QPushButton:hover { - background: qlineargradient(spread:reflect, x1:0.5, y1:0.5, x2:0.5, y2:0, stop:0 rgba(224, 224, 224, 255), stop:1 rgba(201, 201, 201, 255)); - border: 1px solid rgba(0,0,0,255); - color: black; -} - -trackOperationsWidget > QPushButton:pressed { - background: qlineargradient(spread:reflect, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #747474, stop:0.5 #c9c9c9, stop:1 #c0c0c0 ); - border: 1px solid rgba(0,0,0,255); - color: black; -} - -trackOperationsWidget > QPushButton:flat { - background-color: #c9c9c9; - border-radius: 2px; - border: none; -} -*/ trackOperationsWidget > QPushButton::menu-indicator { image: url(resources:trackop.png); @@ -300,12 +398,12 @@ QTreeView { /* Plugins */ TripleOscillatorView knob { - color: rgb(1, 114, 216); + color: rgb(1, 32, 64); qproperty-outerColor: rgb(0, 0, 0); - qproperty-innerRadius: 1; - qproperty-outerRadius: 6.5; - qproperty-centerPointX: 13.5; - qproperty-centerPointY: 13.5; + qproperty-innerRadius: 2; + qproperty-outerRadius: 7; + qproperty-centerPointX: 13.0; + qproperty-centerPointY: 14.0; qproperty-lineWidth: 2; } diff --git a/include/LmmsStyle.h b/include/LmmsStyle.h index 48c48d449..7b74a06f7 100644 --- a/include/LmmsStyle.h +++ b/include/LmmsStyle.h @@ -68,7 +68,7 @@ public: virtual QPalette standardPalette( void ) const; - virtual void drawControl( ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget ) const; +// virtual void drawControl( ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget ) const; virtual void drawComplexControl( ComplexControl control, @@ -84,8 +84,8 @@ public: const QStyleOption * option = 0, const QWidget * widget = 0 ) const; - QSize sizeFromContents( ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget ) const; - QRect subControlRect( ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget ) const; +// QSize sizeFromContents( ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget ) const; +// QRect subControlRect( ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget ) const; private: QImage colorizeXpm( const char * const * xpm, const QBrush& fill ) const; diff --git a/plugins/triple_oscillator/am_active.png b/plugins/triple_oscillator/am_active.png index c02e68fc6..88546daa0 100644 Binary files a/plugins/triple_oscillator/am_active.png and b/plugins/triple_oscillator/am_active.png differ diff --git a/plugins/triple_oscillator/am_inactive.png b/plugins/triple_oscillator/am_inactive.png index bcdbc4ca4..d467da4eb 100644 Binary files a/plugins/triple_oscillator/am_inactive.png and b/plugins/triple_oscillator/am_inactive.png differ diff --git a/plugins/triple_oscillator/artwork.png b/plugins/triple_oscillator/artwork.png index 0c6db1768..7c61a87ec 100644 Binary files a/plugins/triple_oscillator/artwork.png and b/plugins/triple_oscillator/artwork.png differ diff --git a/plugins/triple_oscillator/exp_shape_active.png b/plugins/triple_oscillator/exp_shape_active.png index e9b134534..af1f24a97 100644 Binary files a/plugins/triple_oscillator/exp_shape_active.png and b/plugins/triple_oscillator/exp_shape_active.png differ diff --git a/plugins/triple_oscillator/exp_shape_inactive.png b/plugins/triple_oscillator/exp_shape_inactive.png index fb76a8e5d..4444a8a41 100644 Binary files a/plugins/triple_oscillator/exp_shape_inactive.png and b/plugins/triple_oscillator/exp_shape_inactive.png differ diff --git a/plugins/triple_oscillator/fm_active.png b/plugins/triple_oscillator/fm_active.png index a4a66dcc4..625f40933 100644 Binary files a/plugins/triple_oscillator/fm_active.png and b/plugins/triple_oscillator/fm_active.png differ diff --git a/plugins/triple_oscillator/fm_inactive.png b/plugins/triple_oscillator/fm_inactive.png index 2a12bf670..daddc70ba 100644 Binary files a/plugins/triple_oscillator/fm_inactive.png and b/plugins/triple_oscillator/fm_inactive.png differ diff --git a/plugins/triple_oscillator/mix_active.png b/plugins/triple_oscillator/mix_active.png index 6eba8e39e..9dd52e3b5 100644 Binary files a/plugins/triple_oscillator/mix_active.png and b/plugins/triple_oscillator/mix_active.png differ diff --git a/plugins/triple_oscillator/mix_inactive.png b/plugins/triple_oscillator/mix_inactive.png index 6138a11cd..57814a8a6 100644 Binary files a/plugins/triple_oscillator/mix_inactive.png and b/plugins/triple_oscillator/mix_inactive.png differ diff --git a/plugins/triple_oscillator/moog_saw_shape_active.png b/plugins/triple_oscillator/moog_saw_shape_active.png index 79c78a9c8..5cabc3bb2 100644 Binary files a/plugins/triple_oscillator/moog_saw_shape_active.png and b/plugins/triple_oscillator/moog_saw_shape_active.png differ diff --git a/plugins/triple_oscillator/moog_saw_shape_inactive.png b/plugins/triple_oscillator/moog_saw_shape_inactive.png index f4bb000f8..b07d863b4 100644 Binary files a/plugins/triple_oscillator/moog_saw_shape_inactive.png and b/plugins/triple_oscillator/moog_saw_shape_inactive.png differ diff --git a/plugins/triple_oscillator/pm_active.png b/plugins/triple_oscillator/pm_active.png index cb37870f1..b8e952072 100644 Binary files a/plugins/triple_oscillator/pm_active.png and b/plugins/triple_oscillator/pm_active.png differ diff --git a/plugins/triple_oscillator/pm_inactive.png b/plugins/triple_oscillator/pm_inactive.png index 8f9fd3ddc..458f49bdb 100644 Binary files a/plugins/triple_oscillator/pm_inactive.png and b/plugins/triple_oscillator/pm_inactive.png differ diff --git a/plugins/triple_oscillator/saw_shape_active.png b/plugins/triple_oscillator/saw_shape_active.png index 2279f24d3..88622a2ea 100644 Binary files a/plugins/triple_oscillator/saw_shape_active.png and b/plugins/triple_oscillator/saw_shape_active.png differ diff --git a/plugins/triple_oscillator/saw_shape_inactive.png b/plugins/triple_oscillator/saw_shape_inactive.png index f7e679d54..e28c5a315 100644 Binary files a/plugins/triple_oscillator/saw_shape_inactive.png and b/plugins/triple_oscillator/saw_shape_inactive.png differ diff --git a/plugins/triple_oscillator/sin_shape_active.png b/plugins/triple_oscillator/sin_shape_active.png index 7bac6e4a5..0f51d6fbc 100644 Binary files a/plugins/triple_oscillator/sin_shape_active.png and b/plugins/triple_oscillator/sin_shape_active.png differ diff --git a/plugins/triple_oscillator/sin_shape_inactive.png b/plugins/triple_oscillator/sin_shape_inactive.png index 3a84f66af..591e5a9b2 100644 Binary files a/plugins/triple_oscillator/sin_shape_inactive.png and b/plugins/triple_oscillator/sin_shape_inactive.png differ diff --git a/plugins/triple_oscillator/square_shape_active.png b/plugins/triple_oscillator/square_shape_active.png index 7d686527c..bfacc0cbb 100644 Binary files a/plugins/triple_oscillator/square_shape_active.png and b/plugins/triple_oscillator/square_shape_active.png differ diff --git a/plugins/triple_oscillator/square_shape_inactive.png b/plugins/triple_oscillator/square_shape_inactive.png index f2990bf0c..e8e1a1659 100644 Binary files a/plugins/triple_oscillator/square_shape_inactive.png and b/plugins/triple_oscillator/square_shape_inactive.png differ diff --git a/plugins/triple_oscillator/sync_active.png b/plugins/triple_oscillator/sync_active.png index cffd1b3d6..fa07bcfa7 100644 Binary files a/plugins/triple_oscillator/sync_active.png and b/plugins/triple_oscillator/sync_active.png differ diff --git a/plugins/triple_oscillator/sync_inactive.png b/plugins/triple_oscillator/sync_inactive.png index b5bc4aea8..579eceb12 100644 Binary files a/plugins/triple_oscillator/sync_inactive.png and b/plugins/triple_oscillator/sync_inactive.png differ diff --git a/plugins/triple_oscillator/triangle_shape_active.png b/plugins/triple_oscillator/triangle_shape_active.png index 97d0d1c30..ad343d7be 100644 Binary files a/plugins/triple_oscillator/triangle_shape_active.png and b/plugins/triple_oscillator/triangle_shape_active.png differ diff --git a/plugins/triple_oscillator/triangle_shape_inactive.png b/plugins/triple_oscillator/triangle_shape_inactive.png index a0199e8f2..e2ab7406d 100644 Binary files a/plugins/triple_oscillator/triangle_shape_inactive.png and b/plugins/triple_oscillator/triangle_shape_inactive.png differ diff --git a/plugins/triple_oscillator/usr_shape_active.png b/plugins/triple_oscillator/usr_shape_active.png index ac6ea1f3c..463aa6882 100644 Binary files a/plugins/triple_oscillator/usr_shape_active.png and b/plugins/triple_oscillator/usr_shape_active.png differ diff --git a/plugins/triple_oscillator/usr_shape_inactive.png b/plugins/triple_oscillator/usr_shape_inactive.png index 53f1eb3dc..923d6b2d8 100644 Binary files a/plugins/triple_oscillator/usr_shape_inactive.png and b/plugins/triple_oscillator/usr_shape_inactive.png differ diff --git a/plugins/triple_oscillator/white_noise_shape_active.png b/plugins/triple_oscillator/white_noise_shape_active.png index 83c44606e..2cd52eaff 100644 Binary files a/plugins/triple_oscillator/white_noise_shape_active.png and b/plugins/triple_oscillator/white_noise_shape_active.png differ diff --git a/plugins/triple_oscillator/white_noise_shape_inactive.png b/plugins/triple_oscillator/white_noise_shape_inactive.png index 19984f586..c989dafc8 100644 Binary files a/plugins/triple_oscillator/white_noise_shape_inactive.png and b/plugins/triple_oscillator/white_noise_shape_inactive.png differ diff --git a/src/gui/AutomationPatternView.cpp b/src/gui/AutomationPatternView.cpp index c4d260c53..86dd1b2cc 100644 --- a/src/gui/AutomationPatternView.cpp +++ b/src/gui/AutomationPatternView.cpp @@ -280,7 +280,7 @@ void AutomationPatternView::paintEvent( QPaintEvent * ) } else { - p.setPen( QColor( 0, 64, 255 ) ); + p.setPen( QColor( 0, 180, 60 ) ); } p.drawText( 2, p.fontMetrics().height() - 1, m_pat->name() ); diff --git a/src/gui/LmmsStyle.cpp b/src/gui/LmmsStyle.cpp index 8d3a15ab3..9df416b8f 100644 --- a/src/gui/LmmsStyle.cpp +++ b/src/gui/LmmsStyle.cpp @@ -232,7 +232,7 @@ QPalette LmmsStyle::standardPalette( void ) const { QPalette pal = QPlastiqueStyle::standardPalette(); - + /* sane defaults in case fetching from stylesheet fails*/ pal.setColor( QPalette::Background, QColor( 91, 101, 113 ) ); @@ -245,17 +245,17 @@ QPalette LmmsStyle::standardPalette( void ) const pal.setColor( QPalette::BrightText, QColor( 74, 253, 133 ) ); pal.setColor( QPalette::Highlight, QColor( 100, 100, 100 ) ); pal.setColor( QPalette::HighlightedText, QColor( 255, 255, 255 ) ); - + /* fetch from stylesheet using regexp */ QStringList paletteData = qApp->styleSheet().split( '\n' ).filter( QRegExp( "^palette:*" ) ); foreach( QString s, paletteData ) { - if (s.contains(":background")) { pal.setColor( QPalette::Background, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } + if (s.contains(":background")) { pal.setColor( QPalette::Background, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } else if (s.contains(":windowtext")) { pal.setColor( QPalette::WindowText, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } else if (s.contains(":base")) { pal.setColor( QPalette::Base, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } - else if (s.contains(":buttontext")) { pal.setColor( QPalette::ButtonText, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } - else if (s.contains(":brighttext")) { pal.setColor( QPalette::BrightText, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } + else if (s.contains(":buttontext")) { pal.setColor( QPalette::ButtonText, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } + else if (s.contains(":brighttext")) { pal.setColor( QPalette::BrightText, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } else if (s.contains(":text")) { pal.setColor( QPalette::Text, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } else if (s.contains(":button")) { pal.setColor( QPalette::Button, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } else if (s.contains(":shadow")) { pal.setColor( QPalette::Shadow, QColor( s.mid( s.indexOf("#"), 7 ) ) ); } @@ -268,7 +268,7 @@ QPalette LmmsStyle::standardPalette( void ) const - +/* void LmmsStyle::drawControl( ControlElement element, const QStyleOption* option, QPainter* painter, const QWidget* widget ) const { @@ -294,7 +294,7 @@ void LmmsStyle::drawControl( ControlElement element, const QStyleOption* option, cache.fill( QColor( 48, 48, 48 ) ); QColor sliderColor; QColor blurColor; - hoverColors(sunken, hover, + hoverColors(sunken, hover, scrollBar->activeSubControls & SC_ScrollBarAddLine && isEnabled, sliderColor, blurColor); @@ -455,7 +455,7 @@ void LmmsStyle::drawControl( ControlElement element, const QStyleOption* option, } } - +*/ void LmmsStyle::drawComplexControl( ComplexControl control, const QStyleOptionComplex * option, @@ -482,12 +482,12 @@ void LmmsStyle::drawComplexControl( ComplexControl control, return; } } - else if( control == CC_ScrollBar ) +/* else if( control == CC_ScrollBar ) { - QColor background = QColor( 48, 48, 48 ); - painter->fillRect( option->rect, background ); + painter->fillRect( option->rect, QApplication::palette().color( QPalette::Active, + QPalette::Background ) ); - } + }*/ QPlastiqueStyle::drawComplexControl( control, option, painter, widget ); } @@ -633,7 +633,7 @@ int LmmsStyle::pixelMetric( PixelMetric _metric, const QStyleOption * _option, } // QStyle::SH_TitleBar_NoBorder - +/* QSize LmmsStyle::sizeFromContents( ContentsType type, const QStyleOption* option, const QSize& size, const QWidget* widget ) const { if( type == CT_ScrollBar ) @@ -655,8 +655,8 @@ QSize LmmsStyle::sizeFromContents( ContentsType type, const QStyleOption* option return QPlastiqueStyle::sizeFromContents( type, option, size, widget ); } - - +*/ +/* QRect LmmsStyle::subControlRect( ComplexControl control, const QStyleOptionComplex* option, SubControl subControl, const QWidget* widget ) const { QRect rect = QPlastiqueStyle::subControlRect( control, option, subControl, widget ); @@ -797,7 +797,7 @@ QRect LmmsStyle::subControlRect( ComplexControl control, const QStyleOptionCompl return rect; } - +*/ diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index 61aa43551..27ebbcace 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -844,7 +844,7 @@ inline void pianoRoll::drawNoteRect( QPainter & _p, int _x, int _y, ( (float)( PanningRight - _n->getPanning() ) ) / ( (float)( PanningRight - PanningLeft ) ) * 2.0f ); - const QColor defaultNoteColor( 0x4A, 0xFD, 0x85 ); + const QColor defaultNoteColor( 0x77, 0xC7, 0xD8 ); QColor col = defaultNoteColor; if( _n->length() < 0 ) @@ -2680,7 +2680,7 @@ static void printNoteHeights(QPainter& p, int bottom, int width, int startKey) }; p.setFont( pointSize( p.font() ) ); - p.setPen( QColor( 255, 255, 0 ) ); + p.setPen( QColor( 255, 255, 255 ) ); for( int y = bottom, key = startKey; y > PR_TOP_MARGIN; y -= KEY_LINE_HEIGHT, key++) { @@ -2924,7 +2924,7 @@ void pianoRoll::paintEvent( QPaintEvent * _pe ) QFont f = p.font(); f.setBold( false ); p.setFont( pointSize<10>( f ) ); - p.setPen( QColor( 255, 255, 0 ) ); + p.setPen( QColor( 255, 255, 255) ); p.drawText( QRect( 0, keyAreaBottom(), WHITE_KEY_WIDTH, noteEditBottom() - keyAreaBottom() ), Qt::AlignCenter | Qt::TextWordWrap, @@ -3072,7 +3072,7 @@ void pianoRoll::paintEvent( QPaintEvent * _pe ) int editHandleTop = 0; if( m_noteEditMode == NoteEditVolume ) { - QColor color = QColor::fromHsv( 120, 221, + QColor color = QColor::fromHsv( 140, 221, qMin(255, 60 + ( *it )->getVolume() ) ); if( ( *it )->selected() ) { @@ -3091,7 +3091,7 @@ void pianoRoll::paintEvent( QPaintEvent * _pe ) } else if( m_noteEditMode == NoteEditPanning ) { - QColor color( 0xFF, 0xB0, 0x00 ); + QColor color( 0x99, 0xAF, 0xFF ); if( ( *it )->selected() ) { color.setRgb( 0x00, 0x40, 0xC0 ); @@ -3119,7 +3119,7 @@ void pianoRoll::paintEvent( QPaintEvent * _pe ) } } - p.setPen( QPen( QColor( 0xEA, 0xA1, 0x00 ), + p.setPen( QPen( QColor( 0x99, 0xAF, 0xFF ), NE_LINE_WIDTH+2 ) ); p.drawPoints( editHandles ); diff --git a/src/tracks/pattern.cpp b/src/tracks/pattern.cpp index 54c7ef41c..06dc26622 100644 --- a/src/tracks/pattern.cpp +++ b/src/tracks/pattern.cpp @@ -1271,7 +1271,7 @@ void patternView::paintEvent( QPaintEvent * ) } else { - p.setPen( QColor( 32, 240, 32 ) ); + p.setPen( QColor( 32, 240, 101 ) ); } if( m_pat->name() != m_pat->instrumentTrack()->name() )