mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-06-02 04:29:38 +08:00
Compare commits
1 Commits
v0.3.3
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cb9cb8bc9 |
@@ -8,7 +8,7 @@
|
|||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>{{.OutputFilename}}</string>
|
<string>{{.OutputFilename}}</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.wails.{{.Name}}</string>
|
<string>com.wails.{{.Name}}.dev</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>{{.Info.ProductVersion}}</string>
|
<string>{{.Info.ProductVersion}}</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ const getPlatformFactors = () => {
|
|||||||
|
|
||||||
export const normalizeOpacityForPlatform = (opacity: number | undefined): number => {
|
export const normalizeOpacityForPlatform = (opacity: number | undefined): number => {
|
||||||
const raw = clamp(opacity ?? DEFAULT_OPACITY, MIN_OPACITY, MAX_OPACITY);
|
const raw = clamp(opacity ?? DEFAULT_OPACITY, MIN_OPACITY, MAX_OPACITY);
|
||||||
|
// 用户显式拉到 100%% 时,必须保持完全不透明,不能再被平台映射压低。
|
||||||
|
if (raw >= MAX_OPACITY - 1e-6) {
|
||||||
|
return MAX_OPACITY;
|
||||||
|
}
|
||||||
const factors = getPlatformFactors();
|
const factors = getPlatformFactors();
|
||||||
if (!factors) {
|
if (!factors) {
|
||||||
return raw;
|
return raw;
|
||||||
|
|||||||
Reference in New Issue
Block a user