横竖屏ux适配

Signed-off-by: wwx1133664 <wangyi237@huawei.com>
This commit is contained in:
wwx1133664 2022-05-30 10:33:32 +08:00
parent f675ebdcfc
commit 689edf4231
2 changed files with 10 additions and 2 deletions

View File

@ -123,12 +123,12 @@ export default class storageController extends BaseSettingsController {
LogUtil.info(ConfigData.TAG + 'Storage getStorageList key:' + key);
switch (key) {
case Space.USED_SPACE:
storageList[key].settingIcon = '#4C89F0';
storageList[key].settingIcon = $r('app.color.4C89F0');
storageList[key].settingTitle = $r('app.string.usedSpace');
storageList[key].settingValue = this.usedSpace;
break;
case Space.REMAINING_SPACE:
storageList[key].settingIcon = '#D1D0DB';
storageList[key].settingIcon = $r('app.color.D1D0DB');
storageList[key].settingTitle = $r('app.string.remainingSpace');
storageList[key].settingValue = this.freeBytes;
break;

View File

@ -67,6 +67,14 @@
{
"name": "DCEAF9",
"value": "#DCEAF9"
},
{
"name": "4C89F0",
"value": "#4C89F0"
},
{
"name": "D1D0DB",
"value": "#D1D0DB"
}
]
}