mirror of
https://github.com/YTLitePlus/YTLitePlus.git
synced 2026-01-11 22:40:20 +00:00
Revert default Player Button, reduce image size
This commit is contained in:
parent
53e42e1dd4
commit
969efaaf4d
2 changed files with 2 additions and 5 deletions
|
|
@ -1034,10 +1034,10 @@ NSInteger pageStyle = 0;
|
|||
self.videoPlayerButton.frame = CGRectMake(0, 0, 40, 40);
|
||||
|
||||
if ([%c(YTPageStyleController) pageStyle]) { //dark mode
|
||||
[self.videoPlayerButton setImage:[UIImage imageWithContentsOfFile:[tweakBundle pathForResource:@"YTLitePlusColored-1024" ofType:@"png"]] forState:UIControlStateNormal];
|
||||
[self.videoPlayerButton setImage:[UIImage imageWithContentsOfFile:[tweakBundle pathForResource:@"YTLitePlusColored-128" ofType:@"png"]] forState:UIControlStateNormal];
|
||||
}
|
||||
else { // light mode
|
||||
UIImage *image = [UIImage imageWithContentsOfFile:[tweakBundle pathForResource:@"YTLitePlusColored-1024" ofType:@"png"]];
|
||||
UIImage *image = [UIImage imageWithContentsOfFile:[tweakBundle pathForResource:@"YTLitePlusColored-128" ofType:@"png"]];
|
||||
image = [image imageWithTintColor:UIColor.blackColor renderingMode:UIImageRenderingModeAlwaysTemplate];
|
||||
[self.videoPlayerButton setImage:image forState:UIControlStateNormal];
|
||||
[self.videoPlayerButton setTintColor:UIColor.blackColor];
|
||||
|
|
@ -1322,9 +1322,6 @@ NSInteger pageStyle = 0;
|
|||
if (![allKeys containsObject:@"fixCasting_enabled"]) {
|
||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"fixCasting_enabled"];
|
||||
}
|
||||
if (![allKeys containsObject:@"videoPlayerButton_enabled"]) {
|
||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"videoPlayerButton_enabled"];
|
||||
}
|
||||
// Default gestures as volume, brightness, seek
|
||||
if (![allKeys containsObject:@"playerGestureTopSelection"]) {
|
||||
[[NSUserDefaults standardUserDefaults] setInteger:GestureModeVolume forKey:@"playerGestureTopSelection"];
|
||||
|
|
|
|||
BIN
lang/YTLitePlus.bundle/YTLitePlusColored-128.png
Normal file
BIN
lang/YTLitePlus.bundle/YTLitePlusColored-128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Loading…
Reference in a new issue