Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added day night prefix to colour properties #4166

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

john-peterson
Copy link

@john-peterson john-peterson commented Sep 23, 2024

added day night prefix to colour properties

this is my final commitment for the season i will be swimming with the crocs from here on out on a six months expedition from Mozambique to Namibia

if the build fails maybe you can fix the typo this is tested and works in the monet branch

this app is crucial for light weight expeditions and i appreciate everyone's effort to consider my ideas

example configuration

basic day night

~/.termux/colors.properties
cursor=#909090  
day.background=#FFFFFF
day.foreground=#000000                           
nigh.background=#000000            
night.foreground=#ffffff

better night contrast brighter colours

pastel lighten .3 red blue magenta

# red
night.color1=#FFAAAA
night.color9=#FFdddd
# blue
night.color12=#9999ff
# magenta
night.color5=#ff33ff
night.color13=#ff99ff

try to correct bugs

# white
day.color7=#202020
day.color15=#000000

manual

the manual entry is updated here

https://github.com/john-peterson/termux-tools/commits/day

termux-monet patch

the monet patch is here i used the monet fork because the extra keyboard was updated to system colour and i cooperated well with the maintaner that seemed to care about accessibility and usability and merged my patches for an extra keyboard and back button for the input field and drawer working again with back action gestures

https://github.com/john-peterson/termux-app/commits/day3

https://github.com/john-peterson/termux-app/commits/key2

https://github.com/john-peterson/termux-app/commits/back

https://github.com/john-peterson/termux-app/commits/drawer

there are no major forks anymore

https://github.com/termux/termux-app/forks

regular users

i tried to help regular users also that have enabled day mode in the system and are new to termux or have recently wiped all data and settings and expect a white background with legible contrast

https://github.com/john-peterson/termux-app/commits/day2

unscriptable

there is currently no way to script this

mode=$(cmd uimode night); if else fi

/system/bin/cmd uimode night
cmd: Failure calling service uimode: Failed transaction (2147483646)

$PREFIX/bin/cmd
Exception occurred while executing 'night':
java.lang.SecurityException: getNightModeCustomType requires MODIFY_DAY_NIGHT_MODE permission

/system/bin/settings get global ui_night_mode
Exception occurred while executing 'get':                                   java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=13577, uid=10214 requires android.permission.INTERACT_ACROSS_USERS

$PREFIX/bin/settings get global ui_night_mode
cmd: Failure calling service settings: Failed transaction (2147483646)

termux-settings get ui_night_mode
termux-settings: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant