yashsingh1/xdaforums huggingface dataset:
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Thank you for the suggestion! I can implement a force-dark mode option for when dark mode is enabled, and I'll try to include that in the next version, v1.3, however, I dont think ill be able to make it like darq, which does it on a per-app basis. Unfortunately, due to the way that OnePlus implements dark mode, switching light/dark modes disables force-dark mode, which is why darq isnt compatible with my app in the first place.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] kev993:
Thanks for the reply! Not sure if the per-app based dark mode of DarQ is all that useful anyway but the force-dark mode at least makes most apps without integrated dark mode turn dark. So, I'd be pretty happy with "just" that.

I mentioned the two apps don't work well together but DarQ's forced dark theme does still work with Dark Mode Toggler enabled, but only if I turn on DarQ's force dark theme manually after DMT has enabled the dark mode. Maybe because they're both trying to change modes at the same time (around sunrise/sunset)? Might be different if DMT switches modes earlier or later... I have tried DarQ and "Automatic Dark Theme for Android 10" before, and those two apps do work together (1+ Dark mode & force-dark mode). (There's no substratum though, which I find more important personally.) Maybe it helps if you can figure out how they do it differently so it works. Not sure if that helps.

Huge thanks for your work with DMT! Looking forward to v1.3.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Sorry for the late reply. I appreciate the input and I'll be releasing something similar to the features you mentioned in the v1.3 update.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] fooby_sjz:
Ok . your Suggestion is working good. But the sunrise time is not on time, can you do a Option for selected on and off time .
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Abhishek 3402:
Just came across this awesome app, everything working brilliantly except toggling substratum overlays for system ui.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Gordietm:
Apparently you should not enable the system ui overlay. It works fine without it.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] henk5921:
Hope to add widgets in next version

Dear developer, Hello, if the next version supports mobile desktop widgets to switch between night and day, it is really perfect, and I hope to accept comments.:)
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] dviree:
I love u for this ! Is it possible to make it work with tasker ?❤️
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
V1.3 is finished and ready for release!

It should come in the form of a Play Store update soon. Alternatively, you can grab it as an apk attached to the original post of this thread.

Release notes:

- Bug fix for substratum theme feature

- Added option for force-dark mode (in "Advanced options")

- Added option for colorful theme instead of light theme (in "Advanced options")

- Added Chinese translation (huge thanks to XDA user [MENTION=10439875]henk5921[/MENTION])

- Fixed sunrise time to be more accurate

- Added option to set auto-switch to execute a given number of minutes before or after sunrise/sunset.

- Added Credits page

Well, that's the end of the release notes for v1.3. That being said, unfortunately, I'm going to be taking a break from this app for maybe a month (or more?). I got news that an earlier (unpublished) app I made for the Congressional App Challenge has been chosen as my Congressional District's winner, and I might be spending a little time on that. This app isn't being retired or anything, and I'll still be adding translations (during this "break" period) to different languages if you guys contact me here and email me (haroutlabs@gmail.com) with translation help into another language you know. If you guys have any other suggestions, let me know. God willing, I'll try to be active on this thread and maybe add little things here and there during the "break" period. Thank you all for the suggestions and support. If you enjoy the app and have a little money to spare, consider buying me a coffee or something: http://paypal.me/opdarktoggler. If not, it's all good :D.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
This app actually first started out as a Tasker project. I can't add Tasker integration (idk how), but here's the old Tasker project if that helps. It's kind of slow though, compared to the actual app. It also might be buggy. I don't use Tasker anymore, so I can't verify it's that perfect nor can I support it.

I think you need to add this to the Disable and Enable Dark Mode tasks at the end of the tasks:

if (SCREEN==OFF) {

run command/shell: "input keyevent 26; input keyevent 26" (without quotation marks)

}
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi henk5921 :),

I think that's a good idea! I don't know how to make widgets, but I might learn and implement that (no promises, though) when I return from my "break" period (see bottom of V1.3 post), if all goes well. In the meantime, I recommend using the custom Quick Settings tile (let me know if you need help finding/adding it).
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaggillararla:
Hey is it possible to make it activate itself at a certain hour? Instead of minutes after sunrise/sunset?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] umair shaikh:
[MENTION=8556290]MOARStuff[/MENTION] discovered your app last night via someone on reddit and works like it's supposed to with my OP7T.

I used to use auto-dark app earlier which was actually made for stock android but this one works better.

Also, loving the 1.3 update.

Just a small suggestion tho.....

can you add custom time slots to change the mode without depending on location ?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
I see that a lot of people want this so I'll try to implement this soon in v1.4.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] toolhas4degrees:
If others are looking for other method with per app on everything Prof reminder on play does this, but wakes the lock screen not aod

https://play.google.com/store/apps/details?id=com.dan_ru.ProfReminder for full features is a paid app though, I'm using it on my OnePlus 7tpro McLaren and it's working fine.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] umair shaikh:
awesome ! keep up the good work man

---------- Post added at 08:40 AM ---------- Previous post was at 08:39 AM ----------

also, if you need testers, i'll be glad to help you out. i own a 7t
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
V1.4 is live! I've added the apk to the original post in the thread and it should be pushed out as an update soon on the Play Store.

Release notes:

- Added redundancy to sunrise/sunset auto-switch

- Added option to set given times instead of sunrise/sunset for auto-switch.

Okay, now I'm taking a break from developing this app, lol!
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] rapdes:
Love this app! It's the only app that works 100% with Oneplus. Is it possible to add an option to have it switch themes based on a set ambient light level? That's the only thing I'm missing.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] The_Keeper86:
Awesome app! Would it be possible to add an option to force dark mode on select apps? Like for example turn it off on Facebook Messenger since it had a native dark mode?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaggillararla:
That's so crazy hard to make plus imagine all that battery wasted
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Ice Bear:
Ice Bear wishes this toggle existed in OOS by default. Ice.Bear gives his thanks.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jimmy123322:
Thx man! Could u also add accent color change feature?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaggillararla:
Do it with substratum. I'm using livdark with an accent and livwhite with a different accent
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
V1.5 is now live!

Release notes:

- Bug fix for auto-switch (removed redundancy)

- Bug fix for crashes
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Mohammed779:
Hello,

Thank you very much for this module,

It works on OnePlus 7T, exactly what I was looking for.

A small thing is off, the quicksettings on 7T is pitch black when dark mode enabled normally from settings, but with this app it's dark and not black. Everything else works fine and pitch black as should be. Any chance to have that fixed?

Thanks
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] sezeryildirim:
Hello,

Thanks for this app, I really need this, but all things are working perfectly but i think, there is a problem about auto set substratum themes system ui,

System UI, System UI Headers, System UI Navigation, System UI QS Tile Icons and System UI Status Bar Icons are not activating when we set to dark or light, except them, all of other layers are activating.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi! This is an intentional feature of the app, as enabling, disabling, or uninstalling any SystemUI theme causes the phone to glitch momentarily, and then puts the phone on the lock screen. This would be a nuisance to the user, especially if this happened when the user was actively using their phone. For this reason, SystemUI themes are not toggled by the app.

Let me know if you have any other questions! :)
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
V1.6 should be rolling out soon! You can also get it from the original post in this thread, if you'd like!

Release notes:

- Major bug fix for OnePlus 7 Pro (Open Beta 9)

- Refactored a little bit of code to make the app more efficient and lightweight
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Arden144:
How about the app waits until the screen is off and then toggles the systemui themes and shuts off the screen again?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] _sbrego_:
So this app requires root. If my phone is not rooted (I know, my bad, but I need Gpay and so on, so i don't want to unlock BL and to restore everything), could I maybe use some ADB commands from PC to get the job done?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Bipop1:
I have root and Google Pay Work super ?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi,

Thanks for the question. Unfortunately, I do not know how this can be achieved with ADB commands. With the way the app is written right now, you have to be rooted in order for it to work. I'm starting to think that it may be possible with ADB commands, but it's only a small thought right now. I'm really busy with school, so I probably will not be able to make something like that in the near future, but if anyone knows how to run "setprop" for system and secure tables without root, please help me out and post it in this thread. If someone figures out a way to do that, I think I could update the app to only require ADB commands much quicker, and I'll put their name in the credits for their help. I think its possible because I believe there's an app on Google Play Store that allows users to modify prop values by hand, and I think it only requires ADB commands for secure table, not even root.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Arden144:
App works great. My only issues are that the manual toggles and the qs tile don't apply systemui overlays, so you get ugly glitched parts of the UI, and the schedule opens the camera
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] IKcolo:
It works on OP6.

Thx!
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, please read the note in the OP about SystemUI overlays. SystemUI overlays are exempt from theme-switching (try enabling, disabling, or uninstalling a SystemUI substratum theme and you will most likely experience why). As to "the schedule opens the camera", can you please explain what you mean by this? I don't understand, sorry.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
That's an interesting idea, but I don't think many people would like this. I think it would create an inconsistent user experience, and for that reason, I don't plan on adding such a feature. Sorry about that. Maybe if more people want it, I can make it an option.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Dark Fear:
The app doesn't launch after beta 9 on 7p .. even v1.6 doesn't work
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaggillararla:
You could just add it as an option in the settings and make something called advanced mode/expert mode?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] zeldomar:
Hi,

The app worked great until I used the tile toggle switch. Since, my phone (system and third-party applications) is blocked in dark theme :(

I tried several things without success:

- uninstall the application

- switch themes directly in the phone parameters

Is there a root command to force the light theme to come back please ?

Thanks
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] tal_sarid:
Is WRITE_SECURE_SETTINGS permission enough for your app? It can be achieved by executing:

"adb shell pm grant com.harout.opdarkmodetoggler android.permission.WRITE_SECURE_SETTINGS"

on a computer connected to the phone.

---------- Post added at 20:14 ---------- Previous post was at 20:08 ----------

Maybe as an optional feature?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, you should be able to fix this by selecting dark mode, applying it, and then selecting light mode in the settings app (Customization > Tone). Also, make sure you're using the latest version of the app (v1.6), since the old ones don't work anymore on newer OnePlus software versions. Quote me and post to this thread if you continue to have problems, or you can, alternatively, DM me here. If you can attach screenshots, it would also be a great help so I can (hopefully) understand and diagnose the issue a little better.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, the first thing I would recommend is to go into your superuser (/root) management app (e.g. Magisk Manager), and make sure that superuser permissions are enabled for the app. If that doesn't work, I'd recommend uninstalling the app and reinstalling it to see if it fixes the problem. Let me know if either of these suggestions work for you and, if not, let me know so that we may try to further debug the issue.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Dark Fear:
none of those worked but i solved it by re-rooting my rom.. thanks for this useful app
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] egekonuk:
I'm on 7t with 10.0.8 . Latest 1.6 launches camera each theme changes did anyone also experiencing same behaviour?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Do you have 'double press power button to open camera' enabled on your phone? Because that would probably cause the issue. Ill try to work on a fix asap. Until v1.7, maybe turn off double press for camera option from the phone's settings?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
I've updated the original post to have the new v1.7 apk, and an app update for v1.7 should be rolling out soon via the Play Store.

Let me know if there are any issues regarding this new version, via this XDA thread.

Release notes:

- Fixed issue regarding camera opening when a theme switch occurs.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] rapdes:
Works great except your app always kills Nova Google companion and I have to restart Nova launcher every time I switch modes
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] egekonuk:
Thanks it's now fixed:good:
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] g_turc:
For older Android Version?

Is there anything like this app for OOS 9?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] sezeryildirim:
I agreed some others, maybe you should add an option toggle for this like an expert mod as anothers said, because its not important for me when the activate system ui get back to lockscreen. Im changing manuel on substratum every morning and night. its really boring to do that everyday :D

Thanks for your answers.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] nishant_713:
Need urgent help.

Used your app to toggle between light and dark themes. I had substratum enabled with Swift black.

Now my whatsapp doesn't show Blue ticks regardless of substratum enabled or disabled.

Even switching to light/dark multiple times doesn't help.

Only if I select light tone in customisation settings, do the Blue ticks appear, switching back to dark again makes Blue ticks completely white.

Tried uninstalling and reinstalling whatsapp, disabling substratum, everything. Nothing's working.

Need help !

Stock OOS OB11/Magisk/Substratum
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Seeing that many people have expressed their desire for this feature, I will try to add it in v1.8. I'll try, but I cannot promise or guarantee anything regarding this feature.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
V1.8 is now ready! As usual, I recommend you download the app via Google Play Store; however, please note that new app/updates approval is taking longer than usual at this time, so the update may be pushed out via Google Play Store later than usual. The APK for the new version will soon be included in the original post in this thread.

Release notes:

-SystemUI substratum themes are now included in auto-substratum enabling/disabling

-Fixed location acquiring to make auto-switch more reliable

-Fixed minor UI inconsistency
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] umair shaikh:
Super awesome.

I've been trying to make this work with swift installer but it doesn't.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaswanth666:
I have the same exact problem as urs.

Unrooted and tried and problem still exists. Can u elaborate the steps u followed?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] sezeryildirim:
Im using with Flux, FluxWhite, LivDark, LivWhite and everything is working right.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaswanth666:
Even I'm facing this issue and tried all possible solutions but of no help

It's actually the force enable dark mode is permanently enabled in whatsapp and there's no way to turn it off now
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, please private message me via XDA so that we can try to troubleshoot this issue. If you can, however, try to disable or uninstall all substratum themes and remove all auto-substratum themes from this app if you have added any. Let me know if that fixes the issue for you; if not, please do send me a private message and I'll try to help you fix this issue.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi all, if anyone is experiencing issues with force-dark mode or something like what this user that I have quoted has mentioned, I have found the issue and will try to release a fix for this in v1.9. For the time being, please use the following solution—please run this command on your phone from a terminal emulator (e.g. Termux):

su -c "settings put secure op_force_dark_mode 0"
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] jaswanth666:
Thanks for the solution. Issue solved :D
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] Rayekk:
Hi, do you remember this idea with ADB? Do you already know if this is possible or not? I want this feature without rooting, but I couldn't find a way to do it myself
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi,

Unfortunately, I'm almost 100% convinced right now that this would not be possible without root. The issue is that the "setprop" command cannot be executed without root, and without setprop, we cannot change the phone's system theme. Maybe when Android 11 rolls out, dark mode theming will be programmed differently, as I heard they were going to work on dark mode for A11, but as it is now in Android 10, I don't believe there's a way without root.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] ylaandroid:
Thanks a lot, this is very useful and working great
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
HI everyone! I hope you are all doing well. I just released the (very late) v1.9 update. As always, you can get it from the Play Store once it has been reviewed and rolled out, or you can get it directly from the original post in the thread.

Release notes:

- Fixed force-dark mode (if coming from an older version, toggle force-dark mode on/off to fix bug)

- Cleaned up some old code

- Fixed a few minor issues and bugs
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] christantoan:
Hi,

I'm having a a problem with the app crashing when started needing to force stop to exit. I have to clear data every time I want to use it. It crashes when using auto switch at sunset/sunrise.

I'm using OnePlus 7 Pro running Oxygen OS 10.0.5.GM21BA [EU]

Attached is the logcat when it crashed. Please let me know if you need anything else.

Thank you.View attachment logcat_05-29-2020_11-46-27.zip
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, thanks for attaching the logcat. I'll try to look through it and respond to you soon. Can you just double-check that superuser permission is granted to the app in your superuser manager (e.g. Magisk Manager)? I doubt that that's the issue, but I guess it wouldn't hurt to check?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] christantoan:
Thank you for the reply. I just double checked that the permission is granted for the app. Also, the app has been working perfectly for the last couple of days. Not sure the reason why. What I can remember is that for a few days I just used the QS toggle to (de)activate dark mode manually without using the scheduler, after that I enabled the scheduler again just to see if it would work and to my surprise, it did work until now.

Sorry for not giving update. I just wanted to be sure that it really work before posting update.

Maybe you can still what is the root cause of the problem?

Thank you.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] ddaharu:
Thank you for this bro. That substratum feature is gold to me.
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] lucfig:
Hi,

I tried to implement on the fly changes to the accent colors based on your profile/app. But it's causing the UI to freeze.

With Tasker built in Custom Settings action, i was able to find the below settings that control the accent colors.

These are set to a #xxxxxxxx color code:

oem_black_mode_accent_color
oem_white_mode_accent_color
oneplus_accent_color

And these can be set from -1 to 11, where -1 is the custom accent (what I want) and 0 to 11 are predefined system accent colors.

oem_white_mode_accent_color_index
oem_black_mode_accent_color_index

The issue is that the color is just partially applied. The notification tiles do get the new color, while other elements do not, as you can see in the image https://i.imgur.com/RM4VNWF.png

In this other image, you can see that the custom color is recognized by the system settings, and I jusst have to click the confirm button on top right so it applies everywhere: https://i.imgur.com/ly10oEA.png

I don't know if the apply button changes any other setting, as when I click it, Tasker and other apps refreshes, so I cannot use the "find" custom setting from Tasker.

Is there a way to implement this with java functions like you did with dark mode?
[OnePlus 7, 7 Pro Cross Device Themes, Apps & Mods] MOARStuff:
Hi, I can try to look into it and see if I can figure it out, but it's not a promise from me. Did you try making the accent color change before the java functions were executed? That might make a difference.