CloverBootloader/CloverApp/Clover/ThemeImage.h
vectorsigma72 00e5e5e7a7 Inproved theme manager resize ability during optimization
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.
2020-04-22 18:01:22 +02:00

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