这是indexloc提供的服务,不要输入任何密码
Skip to content

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

sydneimoon pushed a commit to sydneimoon/termux-monet that referenced this pull request Jun 13, 2025
sydneimoon added a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon added a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon added a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon added a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon added a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon pushed a commit to sydneimoon/termux-monet that referenced this pull request Jun 14, 2025
sydneimoon pushed a commit to sydneimoon/termux-monet that referenced this pull request Jun 29, 2025
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