r/jailbreak • Developer • Jan 27 '20

Release [Release] DarkModeToggle - enable/disable specific tweaks when toggling dark mode

v1.2 - I always update all of my posts with the latest information from any subsequent updates to this tweak. Last update was on February 25, 2020

v1.1

Compatible with iOS 11.0+

Repo: https://captinc.github.io

Price: Free!

Direct .deb download

Source code: https://github.com/captinc/DarkModeToggle

Screenshots

Link

  • Configure preferences in Settings after installing
  • Some tweaks/preferences can be toggled instantly, but others require a respring or killing all apps

Features

  • Customize exactly which tweaks you want enabled/disabled in dark/light mode
  • Change preferences of other tweaks when toggling dark mode
  • Toggle Noctis12 instantly
  • Change SnowBoard themes with dark mode
  • Works with the stock iOS 13 dark mode Control Center module
  • Provides a custom Control Center module for iOS 12 and older (you can still use the custom module on iOS 13)
  • Optionally run a shell script as root when toggling
  • Compatible with WallpaperChanger

Main uses

  • Toggle app-specific dark mode tweaks with iOS 13's dark mode
  • Change the appearance of other tweaks with iOS 13's dark mode
  • On iOS 12, you can have a single toggle that turns all dark modes on/off
  • When combined with WallpaperChanger and the "Run scripts" option, you can have custom appearance-aware wallpapers

Supported tweaks for changing preferences

  • BetterAlerts
  • CallBarXS
  • Complications
  • Grupi
  • Mot
  • Noctis12
  • PencilChargingIndicator
  • PullOver Pro
  • Ringer13
  • SelectionPlus
  • Sileo
  • SnowBoard
  • Tacitus
  • Ultrasound
  • XIIIHUD-Mute
  • Support for more tweaks can be added if you leave a comment or PM me

Donation links if you would like :)

83 Upvotes

92 comments sorted by

View all comments

1

u/cysxl iPhone 14 Pro Max, 16.3 | Dopamine Jan 27 '20

Any chance to make it toggles on/off some specific settings/preferences for tweaks?
sometime we still need those tweaks but not the theme/setup we want in opposite mode🤣

That’ll be awesome !!

3

u/CaptInc37 Developer Jan 27 '20

I would have to hardcode that, which makes stuff harder. Is there a specific tweak u need this for? (no guarantees btw)

0

u/[deleted] Jan 27 '20

[deleted] — view deleted comment

4

u/CaptInc37 Developer Jan 29 '20 edited Jan 30 '20

Well here’s what I came up with. As you probably know, every tweak that has preferences must store those preferences somewhere. That location would be /var/mobile/Library/Preferences/com.<developer>.<tweakname>.plist

The vast majority of those tweaks read values from that plist at runtime to determine what to do. As a result, if you manually change a value in a .plist, you essentially just toggled the corresponding switch in Settings.app.

Changing text content of a file can easily be done with a shell script (not hard to code). So technically, you are already able to do what you ask with my “Run scripts” feature.

Now obviously this isn’t very user-friendly & noobs**will have a hard time setting the script up, but I can do some magic on my end to basically wrap the plist-value-change thingy in a GUI with relatively little extra work for me.

So your final answer is a “Maybe”!

** (lmao, I couldn’t think of a better/nicer description than ‘noob’. I don’t mean it in a negative way :) Sorry!)

Edit: just to clarify: each setting for a different tweak requires me to manually add it to my tweak

→ More replies (3)

2

u/CaptInc37 Developer Jan 29 '20

Hmmm. At the moment, i have no idea what i will do about this. Only time will tell....

1

u/cysxl iPhone 14 Pro Max, 16.3 | Dopamine Jan 27 '20

Dude ur awesome!

1

u/Justin-Sirois iPhone XS Max, 12.0 | Jan 27 '20 edited Feb 07 '20

Can you add support for CallbarXS, Complications, Ringer13 and/or XIIIHUD-Mute, ChromaGram (just enable/disable this one) pretty please :)

2

u/CaptInc37 Developer Jan 29 '20

If you’re just turning the entire Noctis on/off, you can already do that

1

u/Justin-Sirois iPhone XS Max, 12.0 | Jan 29 '20

I meant the other part of my comment not the first part was a mistype

2

u/CaptInc37 Developer Feb 09 '20

Just FYI, ChromaGram and Noctis are both already supported with the “Disable these tweaks” feature, so no need to add those 2 to the upcoming update

→ More replies (3)

1

u/cysxl iPhone 14 Pro Max, 16.3 | Dopamine Jan 27 '20 edited Jan 28 '20

Just something like : Ultrasound, PencilChargingIndicator, SnowBoard, XenHTML, ColorBanners2, Grupi, Mot, CallBarXS, Tacitus, ColorMeNotifs.

IIRC, there were [Wave] and [Missito] to do such a thing but for me they didn’t work :(

(Missito not working and Wave need a dark mode toggle which not exist in iOS12😭)

2

u/CaptInc37 Developer Jan 29 '20

Wait. Clarify what you want with those tweaks that you mentioned...?

1

u/cysxl iPhone 14 Pro Max, 16.3 | Dopamine Jan 31 '20

With ur toggle, simply changes a bunch of tweak preferences to a different setup. Sorry for bad English :(

→ More replies (2)

2

u/CaptInc37 Developer Feb 09 '20 edited Feb 09 '20

ColorBanners 2, ColorMeNotifs, SnowBoard, and XenHTML are all already supported with the “Disable these tweaks” feature

The rest of the tweaks you requested are almost done

→ More replies (1)

3

u/CaptInc37 Developer Feb 05 '20

Progress has been made https://imgur.com/a/HafaRf5

1

u/Justin-Sirois iPhone XS Max, 12.0 | Feb 05 '20

This is exactly what I meant! Thank you so much I love your hard work :) hope you will release one day ☝️

3

u/CaptInc37 Developer Feb 07 '20

Holy shiitake mushrooms.....just got the preferences working and boy this is gonna be fire.

Fully customizable - you can pick exactly what value a setting for another tweak should be in exactly which mode (dark mode vs light mode). Each of those settings will be applied right as u toggle dark mode (iOS 13’s stock dark mode or my custom module. Both work)

In the future, adding another tweak’s toggle to my tweak literally requires adding 1 line of code and adding 3 entries to a .plist file. Wow.....😳

Even I’m impressed and I’m the one who made it lol

→ More replies (17)