Skip to content

A full-featured download manager.

refactor: dynamic tray scale

Dr_rOot8b97c90e8875
diff --git a/src/renderer/components/Native/DynamicTray.vue b/src/renderer/components/Native/DynamicTray.vue
index 2fe02d54..5577f3cd 100644
--- a/src/renderer/components/Native/DynamicTray.vue
+++ b/src/renderer/components/Native/DynamicTray.vue
@@ -2,23 +2,19 @@
<div style="display: none;">
<img
id="tray-icon-light-normal"
- src="static/[email protected]"
- srcset="static/[email protected] 1x, static/[email protected]"
+ src="static/[email protected]"
>
<img
id="tray-icon-light-active"
- src="static/[email protected]"
- srcset="static/[email protected] 1x, static/[email protected]"
+ src="static/[email protected]"
>
<img
id="tray-icon-dark-normal"
- src="static/[email protected]"
- srcset="static/[email protected] 1x, static/[email protected]"
+ src="static/[email protected]"
>
<img
id="tray-icon-dark-active"
- src="static/[email protected]"
- srcset="static/[email protected] 1x, static/[email protected]"
+ src="static/[email protected]"
>
</div>
</template>
@@ -33,13 +29,6 @@
export default {
name: 'mo-dynamic-tray',
- data () {
- return {
- width: 66,
- height: 16,
- icon: null
- }
- },
computed: {
...mapState('app', {
bigSur: state => state.bigSur,
@@ -51,7 +40,7 @@
speed: state => state.stat.uploadSpeed + state.stat.downloadSpeed
}),
scale () {
- return window.devicePixelRatio > 1 ? 2 : 1
+ return 2
},
currentTheme () {
const { theme, focused } = this