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

Conversation

@TpmKranz
Copy link

@TpmKranz TpmKranz commented Jun 21, 2022

The old implementation allowed only to set one of the two backgrounds at one time, but not both at once.

The Java part of this is mostly backwards compatible with the old termux-wallpaper script, except it is no longer possible to set just the homescreen wallpaper. Cf. termux/termux-api-package#154 for the Bash part.

@TpmKranz TpmKranz changed the title Allow setting both wallpapers at once [1/2] More control over wallpaper [1/2] Jun 25, 2022
@TpmKranz
Copy link
Author

The old implementation sets the leftmost part of the image as the initially visible area, making it necessary to crop images before handing them over to termux-wallpaper, when that functionality is already provided by the setBitmap method.

The rectangle specification was inspired by ImageMagick, but cut down (and in the case of relative offsets changed) a bit for the specific use case of setting wallpapers.

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