static constexpr uint16_t BUTTON_Y2 = 363;\r
static constexpr uint16_t BUTTON_WIDTH = 90;\r
static constexpr uint16_t BUTTON_HEIGHT = 90;\r
-static constexpr uint16_t SLIDER_X = 207;\r
-static constexpr uint16_t SLIDER_Y = 90;\r
-static constexpr uint16_t SLIDER_WIDTH = 40;\r
-static constexpr uint16_t SLIDER_HEIGHT = 274;\r
+static constexpr uint16_t SLIDER_X = 167;\r
+static constexpr uint16_t SLIDER_Y = 77;\r
+static constexpr uint16_t SLIDER_WIDTH = 130;\r
+static constexpr uint16_t SLIDER_HEIGHT = 310;\r
\r
constexpr uint16_t VOLUME_OK = 0;\r
constexpr int16_t VOLUME_ERROR = (-1);\r
progress->SetDirection(UISlider::Direction::DIR_BOTTOM_TO_TOP);\r
progress->SetViewId(VOLUME_PROGRESS);\r
progress->SetRange(VOLUME_MAX, VOLUME_MIN);\r
+ \r
+ progress->SetStyle(STYLE_BORDER_RADIUS, 100);\r
+ progress->SetBackgroundStyle(STYLE_LINE_CAP, CapType::CAP_ROUND);\r
+ progress->SetForegroundStyle(STYLE_LINE_CAP,CapType::CAP_ROUND);\r
+ progress->SetSliderColor(Color::GetColorFromRGBA(0x19, 0x19, 0x19, 0xff), Color::GetColorFromRGBA(0xff, 0xff, 0xff, 0xff));\r
+ progress->SetForegroundStyle(STYLE_BACKGROUND_OPA, 0xff);\r
\r
if (listener == nullptr) {\r
listener = new VolumeSliderEventListener();\r
image = ImageCacheManager::GetInstance().LoadOneInMultiRes(PLAYER_INCREASE_BUTTON, PLAYER_IAMGES);\r
increaseButton->SetImageSrc(image, image);\r
increaseButton->SetOnClickListener(clickListener);\r
+ increaseButton->SetVisible(false);\r
Add(increaseButton);\r
\r
if (decreaseButton == nullptr) {\r
image = ImageCacheManager::GetInstance().LoadOneInMultiRes(PLAYER_DECREASE_BUTTON, PLAYER_IAMGES);\r
decreaseButton->SetImageSrc(image, image);\r
decreaseButton->SetOnClickListener(clickListener);\r
+ decreaseButton->SetVisible(false);\r
Add(decreaseButton);\r
\r
return VOLUME_OK;\r