mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 14:30:06 +00:00
横竖屏ux适配
Signed-off-by: wwx1133664 <wangyi237@huawei.com>
This commit is contained in:
parent
f675ebdcfc
commit
689edf4231
@ -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;
|
||||
|
@ -67,6 +67,14 @@
|
||||
{
|
||||
"name": "DCEAF9",
|
||||
"value": "#DCEAF9"
|
||||
},
|
||||
{
|
||||
"name": "4C89F0",
|
||||
"value": "#4C89F0"
|
||||
},
|
||||
{
|
||||
"name": "D1D0DB",
|
||||
"value": "#D1D0DB"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user