mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-13 10:04:04 +01:00
00e5e5e7a7
Now the theme manager can resize images based on the screen resolution detected into the config.plist or from the main screen of the pc. The resize of the icons only trigger when icons have different size.
23 lines
535 B
Objective-C
23 lines
535 B
Objective-C
//
|
|
// ThemeImage.h
|
|
// Clover
|
|
//
|
|
// Created by vector sigma on 07/03/2020.
|
|
// Copyright © 2020 CloverHackyColor. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#include "lodepng.h"
|
|
#import "libimagequant.h"
|
|
|
|
//NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface ThemeImage : NSImage
|
|
@property (nonatomic, strong) NSData * _Nonnull pngData;
|
|
- (id _Nullable)initWithData:(nonnull NSData *)data
|
|
error:(NSError *_Nullable*_Nullable)errorPtr
|
|
atPath:(nonnull NSString *)path;
|
|
@end
|
|
|
|
//NS_ASSUME_NONNULL_END
|