[vlc-commits] [Git][videolan/vlc][master] macosx: Remove border from VLCImageView
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed May 24 06:47:12 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
19d327e9 by Claudio Cambra at 2023-05-24T06:16:20+00:00
macosx: Remove border from VLCImageView
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/views/VLCImageView.m
Changes:
=====================================
modules/gui/macosx/views/VLCImageView.m
=====================================
@@ -59,7 +59,6 @@
self.contentGravity = VLCImageViewContentGravityResizeAspectFill;
self.wantsLayer = YES;
[self setCropsImagesToRoundedCorners:YES];
- [self setupBorderColor];
}
- (void)setCropsImagesToRoundedCorners:(BOOL)cropsImagesToRoundedCorners
@@ -67,11 +66,9 @@
if (cropsImagesToRoundedCorners) {
self.layer.cornerRadius = 5.;
self.layer.masksToBounds = YES;
- self.layer.borderWidth = 2.;
} else {
self.layer.cornerRadius = 0.;
self.layer.masksToBounds = NO;
- self.layer.borderWidth = 0.;
}
}
@@ -80,15 +77,6 @@
return self.layer.masksToBounds;
}
-- (void)setupBorderColor
-{
- if (self.shouldShowDarkAppearance) {
- self.layer.borderColor = [NSColor VLClibraryItemBorderDarkColor].CGColor;
- } else {
- self.layer.borderColor = [NSColor VLClibraryItemBorderLightColor].CGColor;
- }
-}
-
- (void)setImage:(NSImage *)image
{
_image = image;
@@ -145,11 +133,6 @@
}
}
-- (void)viewDidChangeEffectiveAppearance
-{
- [self setupBorderColor];
-}
-
- (void)setImageURL:(NSURL * _Nonnull)artworkURL placeholderImage:(NSImage * _Nullable)image
{
if([_currentArtworkURL isEqual:artworkURL]) {
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/19d327e938200312dce05d59f79010f37ae65393
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/19d327e938200312dce05d59f79010f37ae65393
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list