summaryrefslogtreecommitdiff
path: root/src/ui/mediaui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mediaui.c')
-rw-r--r--src/ui/mediaui.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/mediaui.c b/src/ui/mediaui.c
index 24b29cb0..bc417fc3 100644
--- a/src/ui/mediaui.c
+++ b/src/ui/mediaui.c
@@ -86,7 +86,7 @@ static int drawSevenSegmentTime_(iInt2 pos, int color, int align, int seconds) {
86 const int hours = seconds / 3600; 86 const int hours = seconds / 3600;
87 const int mins = (seconds / 60) % 60; 87 const int mins = (seconds / 60) % 60;
88 const int secs = seconds % 60; 88 const int secs = seconds % 60;
89 const int font = uiLabel_FontId; 89 const int font = defaultBig_FontId;
90 iString num; 90 iString num;
91 init_String(&num); 91 init_String(&num);
92 if (hours) { 92 if (hours) {
@@ -102,7 +102,7 @@ static int drawSevenSegmentTime_(iInt2 pos, int color, int align, int seconds) {
102 if (align == right_Alignment) { 102 if (align == right_Alignment) {
103 pos.x -= size.x; 103 pos.x -= size.x;
104 } 104 }
105 drawRange_Text(font, pos, color, range_String(&num)); 105 drawRange_Text(font, addY_I2(pos, -gap_UI / 8), color, range_String(&num));
106 deinit_String(&num); 106 deinit_String(&num);
107 return size.x; 107 return size.x;
108} 108}
@@ -123,7 +123,7 @@ void draw_PlayerUI(iPlayerUI *d, iPaint *p) {
123 drawPlayerButton_( 123 drawPlayerButton_(
124 p, d->volumeRect, volumeChar_(volume_Player(d->player)), uiContentSymbols_FontId); 124 p, d->volumeRect, volumeChar_(volume_Player(d->player)), uiContentSymbols_FontId);
125 } 125 }
126 const int hgt = lineHeight_Text(uiLabel_FontId); 126 const int hgt = lineHeight_Text(defaultBig_FontId);
127 const int yMid = mid_Rect(d->scrubberRect).y; 127 const int yMid = mid_Rect(d->scrubberRect).y;
128 const float playTime = time_Player(d->player); 128 const float playTime = time_Player(d->player);
129 const float totalTime = duration_Player(d->player); 129 const float totalTime = duration_Player(d->player);
@@ -153,7 +153,8 @@ void draw_PlayerUI(iPlayerUI *d, iPaint *p) {
153 const char *dot = "\u23fa"; 153 const char *dot = "\u23fa";
154 const int dotWidth = advance_Text(uiLabel_FontId, dot).x; 154 const int dotWidth = advance_Text(uiLabel_FontId, dot).x;
155 draw_Text(uiLabel_FontId, 155 draw_Text(uiLabel_FontId,
156 init_I2(s1 * (1.0f - normPos) + s2 * normPos - dotWidth / 2, yMid - hgt / 2), 156 init_I2(s1 * (1.0f - normPos) + s2 * normPos - dotWidth / 2,
157 yMid - lineHeight_Text(uiLabel_FontId) / 2),
157 isPaused_Player(d->player) ? dim : bright, 158 isPaused_Player(d->player) ? dim : bright,
158 dot); 159 dot);
159 /* Volume adjustment. */ 160 /* Volume adjustment. */
@@ -186,7 +187,8 @@ void draw_PlayerUI(iPlayerUI *d, iPaint *p) {
186 width_Rect(d->volumeSlider) - volPart, 187 width_Rect(d->volumeSlider) - volPart,
187 dim); 188 dim);
188 draw_Text(uiLabel_FontId, 189 draw_Text(uiLabel_FontId,
189 init_I2(left_Rect(d->volumeSlider) + volPart - dotWidth / 2, yMid - hgt / 2), 190 init_I2(left_Rect(d->volumeSlider) + volPart - dotWidth / 2,
191 yMid - lineHeight_Text(uiLabel_FontId) / 2),
190 volColor, 192 volColor,
191 dot); 193 dot);
192 } 194 }