Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
appearance: small adjusts
Browse files Browse the repository at this point in the history
Signed-off-by: Lessica <wuzheng28@huawei.com>
  • Loading branch information
Lessica committed Jan 26, 2024
1 parent 30ebbeb commit c998d8c
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = "es"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 2 additions & 2 deletions layout/Applications/TrollSpeed.app/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.10.1</string>
<string>1.10.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.10.1</string>
<string>1.10.2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down
18 changes: 9 additions & 9 deletions layout/Applications/TrollSpeed.app/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
/* formattedSpeed */
"0 KB/s" = "0 KB/s";

/* No comment provided by engineer. */
"Appearance" = "Appearance";

/* No comment provided by engineer. */
"b/s" = "b/s";

Expand All @@ -55,6 +58,9 @@
/* No comment provided by engineer. */
"Choose an action below." = "Choose an action below.";

/* No comment provided by engineer. */
"Classic" = "Classic";

/* No comment provided by engineer. */
"Developer Area" = "Developer Area";

Expand All @@ -76,6 +82,9 @@
/* No comment provided by engineer. */
"Incoming Only" = "Incoming Only";

/* No comment provided by engineer. */
"Inverted" = "Inverted";

/* No comment provided by engineer. */
"Keep In-place" = "Keep In-place";

Expand Down Expand Up @@ -135,12 +144,3 @@

/* No comment provided by engineer. */
"▲▼" = "▲▼";

/* No comment provided by engineer. */
"Classic" = "Classic";

/* No comment provided by engineer. */
"Inverted" = "Inverted";

/* No comment provided by engineer. */
"Appearance" = "Appearance";
18 changes: 9 additions & 9 deletions layout/Applications/TrollSpeed.app/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
/* formattedSpeed */
"0 KB/s" = "0 KB/s";

/* No comment provided by engineer. */
"Appearance" = "Apariencia";

/* No comment provided by engineer. */
"b/s" = "b/s";

Expand All @@ -55,6 +58,9 @@
/* No comment provided by engineer. */
"Choose an action below." = "Elija una acción a continuación.";

/* No comment provided by engineer. */
"Classic" = "Clásico";

/* No comment provided by engineer. */
"Developer Area" = "Área de desarrollo";

Expand All @@ -76,6 +82,9 @@
/* No comment provided by engineer. */
"Incoming Only" = "Sólo descarga";

/* No comment provided by engineer. */
"Inverted" = "Invertido";

/* No comment provided by engineer. */
"Keep In-place" = "Mantener en el sitio";

Expand Down Expand Up @@ -135,12 +144,3 @@

/* No comment provided by engineer. */
"▲▼" = "▲▼";

/* No comment provided by engineer. */
"Classic" = "Clásico";

/* No comment provided by engineer. */
"Inverted" = "Invertido";

/* No comment provided by engineer. */
"Appearance" = "Apariencia";
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
/* formattedSpeed */
"0 KB/s" = "0 KB/s";

/* No comment provided by engineer. */
"Appearance" = "外观";

/* No comment provided by engineer. */
"b/s" = "b/s";

Expand All @@ -55,6 +58,9 @@
/* No comment provided by engineer. */
"Choose an action below." = "请选择以下任一选项。";

/* No comment provided by engineer. */
"Classic" = "经典";

/* No comment provided by engineer. */
"Developer Area" = "开发者工具";

Expand All @@ -76,6 +82,9 @@
/* No comment provided by engineer. */
"Incoming Only" = "仅显示下载";

/* No comment provided by engineer. */
"Inverted" = "实时反色";

/* No comment provided by engineer. */
"Keep In-place" = "锁定位置";

Expand Down Expand Up @@ -135,12 +144,3 @@

/* No comment provided by engineer. */
"▲▼" = "▲▼";

/* No comment provided by engineer. */
"Classic" = "经典";

/* No comment provided by engineer. */
"Inverted" = "实时反色";

/* No comment provided by engineer. */
"Appearance" = "外观";
2 changes: 1 addition & 1 deletion layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ch.xxtou.hudapp
Name: HUD App
Version: 1.10.1
Version: 1.10.2
Section: Tweaks
Depends: firmware (>= 14.0), mobilesubstrate (>= 0.9.7000)
Architecture: iphoneos-arm
Expand Down
7 changes: 4 additions & 3 deletions sources/HUDBackdropLabel.mm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ - (void)setColorInvertEnabled:(BOOL)colorInvertEnabled

- (void)setupAppearance
{
self.alpha = 0.85;
self.textColor = _isColorInvertEnabled ? [UIColor clearColor] : [UIColor whiteColor];
if (_isColorInvertEnabled)
{
Expand All @@ -54,10 +55,10 @@ - (void)setupAppearance
[blurFilter setValue:@YES forKey:@"inputNormalizeEdges"]; // do not use inputHardEdges

CAFilter *contrastFilter = [CAFilter filterWithName:kCAFilterColorContrast];
[contrastFilter setValue:@(500.0) forKey:@"inputAmount"]; // 500x
[contrastFilter setValue:@(1000.0) forKey:@"inputAmount"]; // 1000x

CAFilter *brightnessFilter = [CAFilter filterWithName:kCAFilterColorBrightness];
[brightnessFilter setValue:@(-0.3) forKey:@"inputAmount"]; // -30%
[brightnessFilter setValue:@(-0.285) forKey:@"inputAmount"]; // -28.5%

CAFilter *saturateFilter = [CAFilter filterWithName:kCAFilterColorSaturate];
[saturateFilter setValue:@(0.0) forKey:@"inputAmount"];
Expand All @@ -70,7 +71,7 @@ - (void)setupAppearance
]];

_backdropTextLayer = [CATextLayer layer];
_backdropTextLayer.contentsScale = self.layer.contentsScale;
_backdropTextLayer.contentsScale = self.layer.contentsScale * 1.1;
_backdropTextLayer.allowsFontSubpixelQuantization = YES;
_backdropTextLayer.actions = @{
@"bounds": [NSNull null],
Expand Down
28 changes: 14 additions & 14 deletions sources/TSSettingsIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ enum TSSettingsIndex: Int, CaseIterable {
case keepInPlace
case hideAtSnapshot
case singleLineMode
case usesInvertedColor
case usesRotation
case usesLargeFont
case usesBitrate
case usesArrowPrefixes
case usesInvertedColor
case usesBitrate

var key: String {
switch self {
Expand All @@ -28,16 +28,16 @@ enum TSSettingsIndex: Int, CaseIterable {
return HUDUserDefaultsKeyHideAtSnapshot
case .singleLineMode:
return HUDUserDefaultsKeySingleLineMode
case .usesInvertedColor:
return HUDUserDefaultsKeyUsesInvertedColor
case .usesRotation:
return HUDUserDefaultsKeyUsesRotation
case .usesLargeFont:
return HUDUserDefaultsKeyUsesLargeFont
case .usesBitrate:
return HUDUserDefaultsKeyUsesBitrate
case .usesArrowPrefixes:
return HUDUserDefaultsKeyUsesArrowPrefixes
case .usesInvertedColor:
return HUDUserDefaultsKeyUsesInvertedColor
case .usesBitrate:
return HUDUserDefaultsKeyUsesBitrate
}
}

Expand All @@ -51,16 +51,16 @@ enum TSSettingsIndex: Int, CaseIterable {
return NSLocalizedString("Hide @snapshot", comment: "TSSettingsIndex")
case .singleLineMode:
return NSLocalizedString("Incoming Only", comment: "TSSettingsIndex")
case .usesInvertedColor:
return NSLocalizedString("Appearance", comment: "TSSettingsIndex")
case .usesRotation:
return NSLocalizedString("Landscape", comment: "TSSettingsIndex")
case .usesLargeFont:
return NSLocalizedString("Size", comment: "TSSettingsIndex")
case .usesBitrate:
return NSLocalizedString("Unit", comment: "TSSettingsIndex")
case .usesArrowPrefixes:
return NSLocalizedString("Prefixes", comment: "TSSettingsIndex")
case .usesInvertedColor:
return NSLocalizedString("Appearance", comment: "TSSettingsIndex")
case .usesBitrate:
return NSLocalizedString("Unit", comment: "TSSettingsIndex")
}
}

Expand All @@ -76,16 +76,16 @@ enum TSSettingsIndex: Int, CaseIterable {
case .hideAtSnapshot: fallthrough
case .singleLineMode:
return highlighted ? NSLocalizedString("ON", comment: "TSSettingsIndex") : NSLocalizedString("OFF", comment: "TSSettingsIndex")
case .usesInvertedColor:
return highlighted ? NSLocalizedString("Inverted", comment: "TSSettingsIndex") : NSLocalizedString("Classic", comment: "TSSettingsIndex")
case .usesRotation:
return highlighted ? NSLocalizedString("Follow", comment: "TSSettingsIndex") : NSLocalizedString("Hide", comment: "TSSettingsIndex")
case .usesLargeFont:
return highlighted ? NSLocalizedString("Large", comment: "TSSettingsIndex") : NSLocalizedString("Standard", comment: "TSSettingsIndex")
case .usesBitrate:
return highlighted ? NSLocalizedString("b/s", comment: "TSSettingsIndex") : NSLocalizedString("B/s", comment: "TSSettingsIndex")
case .usesArrowPrefixes:
return highlighted ? NSLocalizedString("↑↓", comment: "TSSettingsIndex") : NSLocalizedString("▲▼", comment: "TSSettingsIndex")
case .usesInvertedColor:
return highlighted ? NSLocalizedString("Inverted", comment: "TSSettingsIndex") : NSLocalizedString("Classic", comment: "TSSettingsIndex")
case .usesBitrate:
return highlighted ? NSLocalizedString("b/s", comment: "TSSettingsIndex") : NSLocalizedString("B/s", comment: "TSSettingsIndex")
}
}
}
4 changes: 2 additions & 2 deletions supports/Sandbox-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.10.1</string>
<string>1.10.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.10.1</string>
<string>1.10.2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit c998d8c

Please sign in to comment.