Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit c998d8c

Browse files
committed
appearance: small adjusts
Signed-off-by: Lessica <[email protected]>
1 parent 30ebbeb commit c998d8c

File tree

9 files changed

+51
-49
lines changed

9 files changed

+51
-49
lines changed

TrollSpeed.xcodeproj/xcshareddata/xcschemes/TrollSpeed-Sandbox.xcscheme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
buildConfiguration = "Debug"
3434
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
3535
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
language = "es"
3637
launchStyle = "0"
3738
useCustomWorkingDirectory = "NO"
3839
ignoresPersistentStateOnLaunch = "NO"

layout/Applications/TrollSpeed.app/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundlePackageType</key>
2222
<string>APPL</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>1.10.1</string>
24+
<string>1.10.2</string>
2525
<key>CFBundleSignature</key>
2626
<string>????</string>
2727
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>1.10.1</string>
39+
<string>1.10.2</string>
4040
<key>LSApplicationCategoryType</key>
4141
<string>public.app-category.developer-tools</string>
4242
<key>NSHumanReadableCopyright</key>

layout/Applications/TrollSpeed.app/en.lproj/Localizable.strings

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
/* formattedSpeed */
4747
"0 KB/s" = "0 KB/s";
4848

49+
/* No comment provided by engineer. */
50+
"Appearance" = "Appearance";
51+
4952
/* No comment provided by engineer. */
5053
"b/s" = "b/s";
5154

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

61+
/* No comment provided by engineer. */
62+
"Classic" = "Classic";
63+
5864
/* No comment provided by engineer. */
5965
"Developer Area" = "Developer Area";
6066

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

85+
/* No comment provided by engineer. */
86+
"Inverted" = "Inverted";
87+
7988
/* No comment provided by engineer. */
8089
"Keep In-place" = "Keep In-place";
8190

@@ -135,12 +144,3 @@
135144

136145
/* No comment provided by engineer. */
137146
"▲▼" = "▲▼";
138-
139-
/* No comment provided by engineer. */
140-
"Classic" = "Classic";
141-
142-
/* No comment provided by engineer. */
143-
"Inverted" = "Inverted";
144-
145-
/* No comment provided by engineer. */
146-
"Appearance" = "Appearance";

layout/Applications/TrollSpeed.app/es.lproj/Localizable.strings

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
/* formattedSpeed */
4747
"0 KB/s" = "0 KB/s";
4848

49+
/* No comment provided by engineer. */
50+
"Appearance" = "Apariencia";
51+
4952
/* No comment provided by engineer. */
5053
"b/s" = "b/s";
5154

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

61+
/* No comment provided by engineer. */
62+
"Classic" = "Clásico";
63+
5864
/* No comment provided by engineer. */
5965
"Developer Area" = "Área de desarrollo";
6066

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

85+
/* No comment provided by engineer. */
86+
"Inverted" = "Invertido";
87+
7988
/* No comment provided by engineer. */
8089
"Keep In-place" = "Mantener en el sitio";
8190

@@ -135,12 +144,3 @@
135144

136145
/* No comment provided by engineer. */
137146
"▲▼" = "▲▼";
138-
139-
/* No comment provided by engineer. */
140-
"Classic" = "Clásico";
141-
142-
/* No comment provided by engineer. */
143-
"Inverted" = "Invertido";
144-
145-
/* No comment provided by engineer. */
146-
"Appearance" = "Apariencia";

layout/Applications/TrollSpeed.app/zh-Hans.lproj/Localizable.strings

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
/* formattedSpeed */
4747
"0 KB/s" = "0 KB/s";
4848

49+
/* No comment provided by engineer. */
50+
"Appearance" = "外观";
51+
4952
/* No comment provided by engineer. */
5053
"b/s" = "b/s";
5154

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

61+
/* No comment provided by engineer. */
62+
"Classic" = "经典";
63+
5864
/* No comment provided by engineer. */
5965
"Developer Area" = "开发者工具";
6066

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

85+
/* No comment provided by engineer. */
86+
"Inverted" = "实时反色";
87+
7988
/* No comment provided by engineer. */
8089
"Keep In-place" = "锁定位置";
8190

@@ -135,12 +144,3 @@
135144

136145
/* No comment provided by engineer. */
137146
"▲▼" = "▲▼";
138-
139-
/* No comment provided by engineer. */
140-
"Classic" = "经典";
141-
142-
/* No comment provided by engineer. */
143-
"Inverted" = "实时反色";
144-
145-
/* No comment provided by engineer. */
146-
"Appearance" = "外观";

layout/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ch.xxtou.hudapp
22
Name: HUD App
3-
Version: 1.10.1
3+
Version: 1.10.2
44
Section: Tweaks
55
Depends: firmware (>= 14.0), mobilesubstrate (>= 0.9.7000)
66
Architecture: iphoneos-arm

sources/HUDBackdropLabel.mm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ - (void)setColorInvertEnabled:(BOOL)colorInvertEnabled
4141

4242
- (void)setupAppearance
4343
{
44+
self.alpha = 0.85;
4445
self.textColor = _isColorInvertEnabled ? [UIColor clearColor] : [UIColor whiteColor];
4546
if (_isColorInvertEnabled)
4647
{
@@ -54,10 +55,10 @@ - (void)setupAppearance
5455
[blurFilter setValue:@YES forKey:@"inputNormalizeEdges"]; // do not use inputHardEdges
5556

5657
CAFilter *contrastFilter = [CAFilter filterWithName:kCAFilterColorContrast];
57-
[contrastFilter setValue:@(500.0) forKey:@"inputAmount"]; // 500x
58+
[contrastFilter setValue:@(1000.0) forKey:@"inputAmount"]; // 1000x
5859

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

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

7273
_backdropTextLayer = [CATextLayer layer];
73-
_backdropTextLayer.contentsScale = self.layer.contentsScale;
74+
_backdropTextLayer.contentsScale = self.layer.contentsScale * 1.1;
7475
_backdropTextLayer.allowsFontSubpixelQuantization = YES;
7576
_backdropTextLayer.actions = @{
7677
@"bounds": [NSNull null],

sources/TSSettingsIndex.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ enum TSSettingsIndex: Int, CaseIterable {
1212
case keepInPlace
1313
case hideAtSnapshot
1414
case singleLineMode
15+
case usesInvertedColor
1516
case usesRotation
1617
case usesLargeFont
17-
case usesBitrate
1818
case usesArrowPrefixes
19-
case usesInvertedColor
19+
case usesBitrate
2020

2121
var key: String {
2222
switch self {
@@ -28,16 +28,16 @@ enum TSSettingsIndex: Int, CaseIterable {
2828
return HUDUserDefaultsKeyHideAtSnapshot
2929
case .singleLineMode:
3030
return HUDUserDefaultsKeySingleLineMode
31+
case .usesInvertedColor:
32+
return HUDUserDefaultsKeyUsesInvertedColor
3133
case .usesRotation:
3234
return HUDUserDefaultsKeyUsesRotation
3335
case .usesLargeFont:
3436
return HUDUserDefaultsKeyUsesLargeFont
35-
case .usesBitrate:
36-
return HUDUserDefaultsKeyUsesBitrate
3737
case .usesArrowPrefixes:
3838
return HUDUserDefaultsKeyUsesArrowPrefixes
39-
case .usesInvertedColor:
40-
return HUDUserDefaultsKeyUsesInvertedColor
39+
case .usesBitrate:
40+
return HUDUserDefaultsKeyUsesBitrate
4141
}
4242
}
4343

@@ -51,16 +51,16 @@ enum TSSettingsIndex: Int, CaseIterable {
5151
return NSLocalizedString("Hide @snapshot", comment: "TSSettingsIndex")
5252
case .singleLineMode:
5353
return NSLocalizedString("Incoming Only", comment: "TSSettingsIndex")
54+
case .usesInvertedColor:
55+
return NSLocalizedString("Appearance", comment: "TSSettingsIndex")
5456
case .usesRotation:
5557
return NSLocalizedString("Landscape", comment: "TSSettingsIndex")
5658
case .usesLargeFont:
5759
return NSLocalizedString("Size", comment: "TSSettingsIndex")
58-
case .usesBitrate:
59-
return NSLocalizedString("Unit", comment: "TSSettingsIndex")
6060
case .usesArrowPrefixes:
6161
return NSLocalizedString("Prefixes", comment: "TSSettingsIndex")
62-
case .usesInvertedColor:
63-
return NSLocalizedString("Appearance", comment: "TSSettingsIndex")
62+
case .usesBitrate:
63+
return NSLocalizedString("Unit", comment: "TSSettingsIndex")
6464
}
6565
}
6666

@@ -76,16 +76,16 @@ enum TSSettingsIndex: Int, CaseIterable {
7676
case .hideAtSnapshot: fallthrough
7777
case .singleLineMode:
7878
return highlighted ? NSLocalizedString("ON", comment: "TSSettingsIndex") : NSLocalizedString("OFF", comment: "TSSettingsIndex")
79+
case .usesInvertedColor:
80+
return highlighted ? NSLocalizedString("Inverted", comment: "TSSettingsIndex") : NSLocalizedString("Classic", comment: "TSSettingsIndex")
7981
case .usesRotation:
8082
return highlighted ? NSLocalizedString("Follow", comment: "TSSettingsIndex") : NSLocalizedString("Hide", comment: "TSSettingsIndex")
8183
case .usesLargeFont:
8284
return highlighted ? NSLocalizedString("Large", comment: "TSSettingsIndex") : NSLocalizedString("Standard", comment: "TSSettingsIndex")
83-
case .usesBitrate:
84-
return highlighted ? NSLocalizedString("b/s", comment: "TSSettingsIndex") : NSLocalizedString("B/s", comment: "TSSettingsIndex")
8585
case .usesArrowPrefixes:
8686
return highlighted ? NSLocalizedString("↑↓", comment: "TSSettingsIndex") : NSLocalizedString("▲▼", comment: "TSSettingsIndex")
87-
case .usesInvertedColor:
88-
return highlighted ? NSLocalizedString("Inverted", comment: "TSSettingsIndex") : NSLocalizedString("Classic", comment: "TSSettingsIndex")
87+
case .usesBitrate:
88+
return highlighted ? NSLocalizedString("b/s", comment: "TSSettingsIndex") : NSLocalizedString("B/s", comment: "TSSettingsIndex")
8989
}
9090
}
9191
}

supports/Sandbox-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundlePackageType</key>
2222
<string>APPL</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>1.10.1</string>
24+
<string>1.10.2</string>
2525
<key>CFBundleSignature</key>
2626
<string>????</string>
2727
<key>CFBundleURLTypes</key>
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>1.10.1</string>
39+
<string>1.10.2</string>
4040
<key>LSApplicationCategoryType</key>
4141
<string>public.app-category.developer-tools</string>
4242
<key>NSHumanReadableCopyright</key>

0 commit comments

Comments
 (0)