Page MenuHomePhorge

Added support for rounded corners on send message box
Needs ReviewPublic

Authored by nannanko on Sat, Sep 26, 1:03 PM.
Tags
None
Referenced Files
F85807584: D364.1791922566.diff
Mon, Oct 12, 1:16 PM
F85807306: D364.1791900639.diff
Mon, Oct 12, 7:10 AM
F85807195: D364.1791884971.diff
Mon, Oct 12, 2:49 AM
F85806937: D364.1791845889.diff
Sun, Oct 11, 3:58 PM
F85793595: IMG20260927032836.jpg
Sat, Sep 26, 1:42 PM
F85793596: IMG20260927032913.jpg
Sat, Sep 26, 1:42 PM
F85793600: IMG_20260719_100822.jpg
Sat, Sep 26, 1:42 PM
Subscribers
None

Details

Reviewers
tusooa
Group Reviewers
O1: the Kazv Project
Summary

Most modern Android devices feature physical rounded corners, which causes the Kazv UI to be clipped on these devices. This diff uses getRoundedCorner (introduced in Android SDK 31) to retrieve device corner information and applies appropriate margins to the SendMessageBox.

Type: add

Test Plan

Package the apk for android, verify the send message box is not clipped by rounded corners.

Diff Detail

Repository
rK kazv
Branch
nannanko/android-round-corner
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 731
Build 1444: Invoke BuildbotBuildbot build #2767
Build 1443: arc lint + arc unit

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

nannanko removed a reviewer: servant.
src/kazv-util.cpp
131

Can we cache the result so that the operation gets executed only once? Thread switching is pretty expensive.

Add cache for screen corner radius

tusooa requested changes to this revision.Sat, Oct 3, 5:59 PM
tusooa added inline comments.
src/contents/ui/RoomPage.qml
191

Can we leave the top padding as default?

195–196

move this into KazvUtil. note that we may have other items that rely on this value in the future

This revision now requires changes to proceed.Sat, Oct 3, 5:59 PM
  • leave the top padding as default
  • move cornerRadius into KazvUtil
  • Standardized Naming