瀏覽代碼

make not gay

pull/1/head
Burrit0z 4 年之前
父節點
當前提交
6aafd4f65a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      KAIBattery.mm

+ 2
- 2
KAIBattery.mm 查看文件

@@ -74,7 +74,7 @@ long long lastPercentage;
}
[label setTextColor:[UIColor whiteColor]];
label.lineBreakMode = NSLineBreakByWordWrapping;
label.numberOfLines = 0;
label.numberOfLines = 1;
[label setText:labelText];

_UIBatteryView *battery = [[_UIBatteryView alloc] init];
@@ -89,7 +89,7 @@ long long lastPercentage;
[percentLabel setTextColor:[UIColor whiteColor]];
percentLabel.lineBreakMode = NSLineBreakByWordWrapping;
[percentLabel setTextAlignment:NSTextAlignmentRight];
percentLabel.numberOfLines = 0;
percentLabel.numberOfLines = 1;
[percentLabel setText:[NSString stringWithFormat:@"%ld%%", (long)((NSInteger) batteryPercentage)]];
if(charging) battery.chargingState = 1;
battery.showsInlineChargingIndicator = YES;

Loading…
取消
儲存