mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 07:42:02 +00:00
fix: default native transparency, clamp scaling, fix linux icon
This commit is contained in:
parent
9f414cd7d3
commit
1cb234a368
4 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.3.57",
|
||||
"version": "6.3.58",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.14.4",
|
||||
|
|
|
|||
1
src/app.d.ts
vendored
1
src/app.d.ts
vendored
|
|
@ -106,6 +106,7 @@ export interface Native {
|
|||
isApp: boolean
|
||||
version: () => Promise<string>
|
||||
navigate: (cb: (data: { target: string, value: string | undefined }) => void) => Promise<void>
|
||||
defaultTransparency: () => boolean
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
|
|
|||
|
|
@ -91,6 +91,7 @@ export default Object.assign<Native, Partial<Native>>({
|
|||
downloadProgress: async () => undefined,
|
||||
updateProgress: async () => undefined,
|
||||
torrentStats: async (): Promise<TorrentInfo> => ({ peers: rnd(), seeders: rnd(), leechers: rnd(), progress: Math.random(), down: rnd(100000000), up: rnd(100000000), name: 'Amebku.webm', downloaded: rnd(100000), hash: '1234567890abcdef', size: 1234567890, eta: rnd() }),
|
||||
torrents: async (): Promise<TorrentInfo[]> => [{ peers: rnd(), seeders: rnd(), leechers: rnd(), progress: Math.random(), down: rnd(100000000), up: rnd(100000000), name: 'Amebku.webm', downloaded: rnd(100000), hash: '1234567890abcdef', size: 1234567890, eta: rnd() }]
|
||||
torrents: async (): Promise<TorrentInfo[]> => [{ peers: rnd(), seeders: rnd(), leechers: rnd(), progress: Math.random(), down: rnd(100000000), up: rnd(100000000), name: 'Amebku.webm', downloaded: rnd(100000), hash: '1234567890abcdef', size: 1234567890, eta: rnd() }],
|
||||
defaultTransparency: () => false
|
||||
// @ts-expect-error idk
|
||||
}, globalThis.native as Partial<Native>)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import native from '../native'
|
||||
|
||||
import SUPPORTS from './supports'
|
||||
|
||||
import type { languageCodes, subtitleResolutions, videoResolutions } from './util'
|
||||
|
|
@ -33,7 +35,7 @@ export default {
|
|||
showDetailsInRPC: true,
|
||||
torrentPath: '',
|
||||
angle: 'default' as 'default' | 'd3d11'| 'd3d9' | 'warp' | 'gl' | 'gles' | 'swiftshader' | 'vulkan' | 'metal',
|
||||
idleAnimation: true,
|
||||
idleAnimation: native.defaultTransparency(),
|
||||
uiScale: 1,
|
||||
enableExternal: false,
|
||||
playerPath: '',
|
||||
|
|
|
|||
Loading…
Reference in a new issue