anonymous No title
No License ObjectiveC
2019年06月14日
Copy Clone
static BOOL enabled;
static BOOL textEnabled;

static float bgred;
static float bggreen;
static float bgblue;
static float bgalpha;

static float txred;
static float txgreen;
static float txblue;
static float txalpha;

#define PREF_PATH @"/var/mobile/Library/Preferences/com.rowl.filzatheme1b.plist"

static void loadPrefs()
{
	NSDictionary *prefs = [NSDictionary dictionaryWithContentsOfFile:PREF_PATH];
	
    enabled = [prefs objectForKey:@"enabled"] ? [[prefs objectForKey:@"enabled"] boolValue] : NO;

    textEnabled = [prefs objectForKey:@"textEnabled"] ? [[prefs objectForKey:@"textEnabled"] boolValue] : NO;



    bgred = [prefs objectForKey:@"bgred"] ? [[prefs objectForKey:@"bgred"] floatValue] : 255.0;

    bggreen = [prefs objectForKey:@"bggreen"] ? [[prefs objectForKey:@"bggreen"] floatValue] : 255.0;

    bgblue = [prefs objectForKey:@"bgblue"] ? [[prefs objectForKey:@"bgblue"] floatValue] : 255.0;

    bgalpha = [prefs objectForKey:@"bgalpha"] ? [[prefs objectForKey:@"bgalpha"] floatValue] : 255.0;



    txred = [prefs objectForKey:@"txred"] ? [[prefs objectForKey:@"txred"] floatValue] : 255.0;

    txgreen = [prefs objectForKey:@"txgreen"] ? [[prefs objectForKey:@"txgreen"] floatValue] : 255.0;

    txblue = [prefs objectForKey:@"txblue"] ? [[prefs objectForKey:@"txblue"] floatValue] : 255.0;

    txalpha = [prefs objectForKey:@"txalpha"] ? [[prefs objectForKey:@"txalpha"] floatValue] : 255.0;
}

%hook ThemeManager
-(id)background {
        if (enabled) {
            return [UIColor 
                colorWithRed:bgred/255.0 
                               green:bggreen/255.0 
                                  blue:bgblue/255.0 
                                alpha:bgalpha/255.0];
        } else {
            return %orig;
    } 
}


- (id)text {
    if (textEnabled) {
        return [UIColor 
            colorWithRed:txred/255.0 
                           green:txgreen/255.0 
                              blue:txblue/255.0 
                            alpha:txalpha/255.0];
        } else {
            return %orig;
    }
}
%end

%ctor 
{
    @autoreleasepool {
        loadPrefs();
        %init;
    }
}
static BOOL enabled;
static BOOL textEnabled;

static float bgred;
static float bggreen;
static float bgblue;
static float bgalpha;

static float txred;
static float txgreen;
static float txblue;
static float txalpha;

#define PREF_PATH @"/var/mobile/Library/Preferences/com.rowl.filzatheme1b.plist"

static void loadPrefs()
{
	NSDictionary *prefs = [NSDictionary dictionaryWithContentsOfFile:PREF_PATH];
	
    enabled = [prefs objectForKey:@"enabled"] ? [[prefs objectForKey:@"enabled"] boolValue] : NO;

    textEnabled = [prefs objectForKey:@"textEnabled"] ? [[prefs objectForKey:@"textEnabled"] boolValue] : NO;



    bgred = [prefs objectForKey:@"bgred"] ? [[prefs objectForKey:@"bgred"] floatValue] : 255.0;

    bggreen = [prefs objectForKey:@"bggreen"] ? [[prefs objectForKey:@"bggreen"] floatValue] : 255.0;

    bgblue = [prefs objectForKey:@"bgblue"] ? [[prefs objectForKey:@"bgblue"] floatValue] : 255.0;

    bgalpha = [prefs objectForKey:@"bgalpha"] ? [[prefs objectForKey:@"bgalpha"] floatValue] : 255.0;



    txred = [prefs objectForKey:@"txred"] ? [[prefs objectForKey:@"txred"] floatValue] : 255.0;

    txgreen = [prefs objectForKey:@"txgreen"] ? [[prefs objectForKey:@"txgreen"] floatValue] : 255.0;

    txblue = [prefs objectForKey:@"txblue"] ? [[prefs objectForKey:@"txblue"] floatValue] : 255.0;

    txalpha = [prefs objectForKey:@"txalpha"] ? [[prefs objectForKey:@"txalpha"] floatValue] : 255.0;
}

%hook ThemeManager
-(id)background {
        if (enabled) {
            return [UIColor 
                colorWithRed:bgred/255.0 
                               green:bggreen/255.0 
                                  blue:bgblue/255.0 
                                alpha:bgalpha/255.0];
        } else {
            return %orig;
    } 
}


- (id)text {
    if (textEnabled) {
        return [UIColor 
            colorWithRed:txred/255.0 
                           green:txgreen/255.0 
                              blue:txblue/255.0 
                            alpha:txalpha/255.0];
        } else {
            return %orig;
    }
}
%end

%ctor 
{
    @autoreleasepool {
        loadPrefs();
        %init;
    }
}
anonymous
Anonymous
2021年04月22日
Drug prescribing information. Short-Term Effects. <a href="https://pregabalin24x7.top">pregablin for sale uk</a> in the USA Some trends of pills. Read information here.
anonymous
Anonymous
2021年04月29日
Medication information sheet. Brand names. <a href="https://pregabalininfo.top">buy pregabalin for sale</a> in USA Everything information about medicament. Get information here.
anonymous
Anonymous
2021年04月30日
cialis pill <a href="https://mycialistabs.com/">buy cialis online usa</a> generic cialis available in canada
anonymous
Anonymous
2021年04月30日
cialis 5mg side effects <a href="https://mycialistabs.com/">cialis daily cost</a> active ingredient in cialis
anonymous
Anonymous
2021年05月01日
purchase cialis on line <a href="https://toptadalafiltabs.com/">cialis 20</a> cialis 80 mg dosage
anonymous
Anonymous
2021年05月01日
cialis cvs <a href="https://toptadalafiltabs.com/">cialis over the counter at walmart</a> lisinopril and cialis
anonymous
Anonymous
2021年05月04日
how to motivate yourself to write an essay <a href="https://topessaywriterfas.com/">essay writing online</a> how to write a critical lense essay
anonymous
Anonymous
2021年05月03日
pay to write my essay <a href="https://topessaywriterfas.com/">college essay structure</a> how to write about a book in an essay
anonymous
Anonymous
2021年05月05日
fresh essay writing service <a href="http://writemyessayslfd.com/">writing persuasive essay</a> conclusion customer service essay
anonymous
Anonymous
2021年05月05日
car rental service essay <a href="http://writemyessayslfd.com/">write argumentative essay</a> writing a personal essay for college
anonymous
Anonymous
2021年05月06日
walmart viagra <a href="https://mrviagrashop.com">buy sildenafil online usa</a> generic viagra price
anonymous
Anonymous
2021年05月06日
female viagra walgreens <a href="https://mrviagrashop.com">best herbal viagra</a> womens viagra
anonymous
Anonymous
2021年05月07日
herbal viagra <a href="https://mysildenafilkr.com/">super viagra</a> sildenafil 100mg price walmart
anonymous
Anonymous
2021年05月07日
canadian pharmacy ezzz viagra <a href="https://mysildenafilkr.com/">sildenafil 50 mg</a> generic viagra walmart
anonymous
Anonymous
2021年05月11日
otc cialis <a href="http://tadalafilled.com/">cialis and bph</a> cialis india
anonymous
Anonymous
2021年05月11日
cialis free trial coupon <a href="http://tadalafilled.com/">cialis vs levitra</a> mail order cialis
anonymous
Anonymous
2021年05月11日
action verbs for resumes <a href="http://coverletterforresumetop.com/">help me write a resume</a> my perfect resume reviews
anonymous
Anonymous
2021年05月11日
waiter resume <a href="http://coverletterforresumetop.com/">top rated resume writing services</a> effective cover letter
anonymous
Anonymous
2021年05月12日
program manager resume <a href="https://writingacoverletteronline.com/">entry level rn resume</a> walk me through your resume
anonymous
Anonymous
2021年05月12日
camp counselor resume <a href="https://writingacoverletteronline.com/">nursing resume</a> technical resume
anonymous
Anonymous
2021年05月13日
viagra pill <a href="https://edviagramaster.net/">viagra cialis levitra</a> sildenafil citrate tablets 100mg
anonymous
Anonymous
2021年05月13日
order viagra <a href="https://edviagramaster.net/">sildenafil 100mg price</a> sildenafil 100mg tablets
anonymous
Anonymous
2021年05月15日
viagra for men online <a href="https://sildenafilviagratop.com">sildenafil citrate 100mg lowest price</a> viagra online no prescription
anonymous
Anonymous
2021年05月15日
canadian pharmacy ezzz viagra <a href="https://sildenafilviagratop.com">viagra fuck</a> sildenafil online
anonymous
Anonymous
2021年05月15日
buy cialis online in usa <a href="https://cialisortadalafil.com/">cialis doses</a> cialis free trial coupon
anonymous
Anonymous
2021年05月15日
is there generic cialis <a href="https://cialisortadalafil.com/">cialis coupon free trial</a> viagra versus cialis
anonymous
Anonymous
2021年05月16日
what is cialis <a href="https://topcialistabs.com/">https://topcialistabs.com/</a> cialis drug interactions
anonymous
Anonymous
2021年05月16日
cialis dosages <a href="https://topcialistabs.com/">canadian pharmacy cialis</a> canadian pharmacy online cialis
anonymous
Anonymous
2021年05月17日
Drug prescribing information. Effects of Drug Abuse. <a href="https://pregabalininfo.top">where buy pregabalin without dr prescription</a> in the USA All about medication. Read now.
anonymous
Anonymous
2021年05月18日
Medicament prescribing information. Brand names. <a href="https://lyrica24x7.top">lyrica pills</a> in the USA Actual what you want to know about drug. Get here.
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">база финансовой отчетности предприятий россии</a>
anonymous
Anonymous
2021年05月21日
<a href="https://5bz.ru/">база предприятий россии по регионам</a>
anonymous
Anonymous
2021年07月19日
<a href="https://domalech.ru">where buy cheap trazodone</a>
anonymous
Anonymous
2021年07月25日
Medicament information leaflet. Effects of Drug Abuse. <a href="https://plaquenil4people.top">where to buy cheap plaquenil online</a> in US Actual news about medicines. Read here.