Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-05-20 18:27:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e1c23ab4b8fbaa12a8919a16e44420d095c3c1c6
e1c23ab4
1 parent
4b74474e
音频悬浮窗配置子窗口透明(无效),布局调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
sight_harmony/products/phone/src/main/ets/entryability/EntryAbility.ets
View file @
e1c23ab
...
...
@@ -117,6 +117,12 @@ export default class EntryAbility extends UIAbility {
return;
}
console.info('floatWindowClass Succeeded in loading the content.');
let color: string = 'rgba(0,0,0,0)';
try {
(floatWindowClass as window.Window).setWindowBackgroundColor(color);
} catch (exception) {
console.error('Failed to set the background color. Cause: ' + JSON.stringify(exception));
};
});
floatWindowClass.on('windowEvent', (data) => {
...
...
sight_harmony/products/phone/src/main/ets/pages/view/AudioComponent.ets
View file @
e1c23ab
...
...
@@ -88,7 +88,6 @@ struct Index {
.height(20)
.fontColor('#222222')
.fontSize(14)
.margin({ top: 10, left: 10 })
.alignSelf(ItemAlign.Start)
.onStart(() => {
console.info('Marquee animation complete onStart')
...
...
@@ -115,7 +114,7 @@ struct Index {
}
.width("100%")
.height(16)
.margin({ top: 4
, left: 10
})
.margin({ top: 4})
Progress({ value: this.progressVal, total: 100, type: ProgressType.Capsule })
.color("#ED2800")
...
...
@@ -194,7 +193,13 @@ struct Index {
)
.width('100%')
.height('100%')
.borderRadius(4)
.padding({
top: 10,
bottom: 10,
left: 10,
right: 0
})
.backgroundColor(Color.White)
.borderRadius(2)
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment