themes: move rounded corners to theme section

This commit is contained in:
2019-02-11 11:14:12 +01:00
parent 92eef239ef
commit 289e167462
14 changed files with 35 additions and 17 deletions

View File

@@ -79,7 +79,7 @@ void CInfoClock::initCCLockItems()
initClockFont(0, height);
// set corner radius depending on clock height
corner_rad = (g_settings.rounded_corners) ? std::max(height/10, CORNER_RADIUS_SMALL) : 0;
corner_rad = (g_settings.theme.rounded_corners) ? std::max(height/10, CORNER_RADIUS_SMALL) : 0;
CVolumeHelper::getInstance()->refresh(cl_font);
CVolumeHelper::getInstance()->getInfoClockDimensions(&x, &y, &width, &height);