mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-19 21:04:08 +01:00
RainbowDash analyzer now more pretty
This commit is contained in:
parent
60ae9e9408
commit
a8c2537056
Binary file not shown.
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 2.4 KiB |
@ -39,7 +39,7 @@ RainbowDashAnalyzer::RainbowDashAnalyzer(QWidget* parent)
|
|||||||
available_rainbow_width_(0),
|
available_rainbow_width_(0),
|
||||||
px_per_frame_(0),
|
px_per_frame_(0),
|
||||||
x_offset_(0),
|
x_offset_(0),
|
||||||
background_brush_(QColor(0x38, 0x88, 0x00)) {
|
background_brush_(QColor(0x0f, 0x43, 0x73)) {
|
||||||
memset(history_, 0, sizeof(history_));
|
memset(history_, 0, sizeof(history_));
|
||||||
|
|
||||||
for (int i = 0; i < kRainbowBands; ++i) {
|
for (int i = 0; i < kRainbowBands; ++i) {
|
||||||
|
@ -38,12 +38,12 @@ class RainbowDashAnalyzer : public Analyzer::Base {
|
|||||||
void resizeEvent(QResizeEvent* e);
|
void resizeEvent(QResizeEvent* e);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int kDashHeight = 30;
|
static const int kDashHeight = 33;
|
||||||
static const int kDashWidth = 54;
|
static const int kDashWidth = 53;
|
||||||
static const int kRainbowHeight = 16;
|
static const int kRainbowHeight = 16;
|
||||||
static const int kDashFrameCount = 1;
|
static const int kDashFrameCount = 16;
|
||||||
static const int kRainbowOverlap = 15;
|
static const int kRainbowOverlap = 15;
|
||||||
static const int kSleepingDashHeight = 30;
|
static const int kSleepingDashHeight = 33;
|
||||||
|
|
||||||
static const int kHistorySize = 128;
|
static const int kHistorySize = 128;
|
||||||
static const int kRainbowBands = 6;
|
static const int kRainbowBands = 6;
|
||||||
|
Loading…
Reference in New Issue
Block a user