Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c73f016
Merge pull request #26 from InfiniTimeOrg/main
tituscmd Jan 21, 2025
3a79fc6
music app redesign
tituscmd May 11, 2025
bf83698
Merge branch 'InfiniTimeOrg:main' into music_redesign
tituscmd May 11, 2025
5ccbaad
removed an empty line
tituscmd May 11, 2025
c85e99c
Merge branch 'music_redesign' of github.com:tituscmd/InfiniTime into …
tituscmd May 11, 2025
e97cb58
Some tweaks for the default texts, as well as adding a different appr…
tituscmd May 12, 2025
db1a0ad
formatting
tituscmd May 12, 2025
e633015
more formatting
tituscmd May 12, 2025
441399e
Merge branch 'main' into music_redesign
tituscmd May 14, 2025
ee276b5
revert back to swiping as a gesture to switch between skip and volume…
tituscmd May 14, 2025
43aa932
remove all unneccessary references to the motor controller
tituscmd May 14, 2025
29cc0eb
formatting
tituscmd May 14, 2025
ba976b6
Merge branch 'main' into music_redesign
tituscmd May 16, 2025
18894a6
removed accidental change
tituscmd May 30, 2025
6b1e277
Merge branch 'music_redesign' of github.com:tituscmd/InfiniTime into …
tituscmd May 30, 2025
012fa8d
Merge branch 'main' into music_redesign
tituscmd May 30, 2025
1ad75d0
Merge branch 'main' into music_redesign
tituscmd Jun 1, 2025
cbc9625
correct color of the buttons
tituscmd Jun 6, 2025
e44aac1
remove redundant initialisers for trackName and albumName
tituscmd Jun 12, 2025
f76c9d4
Merge branch 'main' into music_redesign
tituscmd Jun 12, 2025
73f991d
Merge branch 'main' into music_redesign
tituscmd Jun 28, 2025
628fd16
Merge branch 'main' into music_redesign
tituscmd Jun 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/ble/MusicService.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ namespace Pinetime {

uint16_t eventHandle {};

std::string artistName {"Waiting for"};
std::string albumName {};
std::string trackName {"track information.."};
std::string trackName;
std::string albumName;
std::string artistName {"Not Playing"};

bool playing {false};

Expand Down
14 changes: 7 additions & 7 deletions src/displayapp/screens/Music.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "displayapp/icons/music/disc.c"
#include "displayapp/icons/music/disc_f_1.c"
#include "displayapp/icons/music/disc_f_2.c"
#include "displayapp/InfiniTimeTheme.h"

using namespace Pinetime::Applications::Screens;

Expand Down Expand Up @@ -52,8 +53,7 @@ Music::Music(Pinetime::Controllers::MusicService& music) : musicService(music) {

lv_style_init(&btn_style);
lv_style_set_radius(&btn_style, LV_STATE_DEFAULT, 20);
lv_style_set_bg_color(&btn_style, LV_STATE_DEFAULT, LV_COLOR_AQUA);
lv_style_set_bg_opa(&btn_style, LV_STATE_DEFAULT, LV_OPA_50);
lv_style_set_bg_color(&btn_style, LV_STATE_DEFAULT, Colors::bgAlt);

btnVolDown = lv_btn_create(lv_scr_act(), nullptr);
btnVolDown->user_data = this;
Expand Down Expand Up @@ -114,18 +114,18 @@ Music::Music(Pinetime::Controllers::MusicService& music) : musicService(music) {
constexpr int8_t MIDDLE_OFFSET = -25;
txtArtist = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_long_mode(txtArtist, LV_LABEL_LONG_SROLL_CIRC);
lv_obj_align(txtArtist, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 1 * FONT_HEIGHT);
lv_obj_align(txtArtist, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 2 * FONT_HEIGHT + LINE_PAD);
lv_label_set_align(txtArtist, LV_ALIGN_IN_LEFT_MID);
lv_obj_set_width(txtArtist, LV_HOR_RES - 12);
lv_label_set_text_static(txtArtist, "Artist Name");
lv_label_set_text_static(txtArtist, "");
lv_obj_set_style_local_text_color(txtArtist, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::lightGray);

txtTrack = lv_label_create(lv_scr_act(), nullptr);
lv_label_set_long_mode(txtTrack, LV_LABEL_LONG_SROLL_CIRC);
lv_obj_align(txtTrack, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 2 * FONT_HEIGHT + LINE_PAD);

lv_obj_align(txtTrack, nullptr, LV_ALIGN_IN_LEFT_MID, 12, MIDDLE_OFFSET + 1 * FONT_HEIGHT);
lv_label_set_align(txtTrack, LV_ALIGN_IN_LEFT_MID);
lv_obj_set_width(txtTrack, LV_HOR_RES - 12);
lv_label_set_text_static(txtTrack, "This is a very long getTrack name");
lv_label_set_text_static(txtTrack, "");

/** Init animation */
imgDisc = lv_img_create(lv_scr_act(), nullptr);
Expand Down