Hide status field for now, adjust big font size

This commit is contained in:
miruka 2019-07-19 00:10:46 -04:00
parent a3e2233391
commit db3a9efe8a
6 changed files with 32 additions and 20 deletions

38
TODO.md
View File

@ -1,22 +1,10 @@
- Don't send a formatted_text if it's just `<p>plaintext</p>` - Investigate?
- Set Qt.application.* stuff from C++ - `QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling)`
- Devices and client settings in edit account page
- Multiaccount aliases
- Warn when overwriting another alias
- Add an explanation tooltip
- If avatar is set, name color from average color?
- Accent color from background
- Reduce messages ListView cacheBuffer height once http thumbnails
downloading is implemented
- Improve avatar tooltips position, add stuff to room tooltips (last msg?)
- Accept drag and dropping a picture in account settings to set avatar
- When all the events loaded on beginning in a room are name/avatar changes,
no last event room text is displayed (use sync filter?)
- `QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling)` ?
- Refactoring - Refactoring
- Use .mjs modules - Use .mjs modules
- SignIn/RememberAccount screens - SignIn/RememberAccount screens
- SignIn must be in a flickable
- Don't bake in size properties for components - Don't bake in size properties for components
- Unfinished work in button-refactor branch - Unfinished work in button-refactor branch
- Button can get "hoverEnabled: false" to let HoverHandlers work - Button can get "hoverEnabled: false" to let HoverHandlers work
@ -30,6 +18,16 @@
- Horrible performance for big rooms - Horrible performance for big rooms
- UI - UI
- EditAccount page:
- Device settings
- Multiaccount aliases:
- Warn when overwriting another alias
- Add an explanation tooltip
- Improve avatar tooltips position, add stuff to room tooltips (last msg?)
- Accept drag and dropping a picture in account settings to set avatar
- When all the events loaded on beginning in a room are name/avatar changes,
no last event room text is displayed (use sync filter?)
- Show something when connection is lost or 429s happen - Show something when connection is lost or 429s happen
- "Rejoin" LeftBanner button if room is public - "Rejoin" LeftBanner button if room is public
- Daybreak color - Daybreak color
@ -54,12 +52,14 @@
- Forget room warning popup - Forget room warning popup
- Prevent using the SendBox if no permission (power levels) - Prevent using the SendBox if no permission (power levels)
- Spinner when loading past room events, images or clicking buttons - Spinner when loading past room events, images or clicking buttons
- Better theming/styling system - Parse themes from JSON
- Settings page - Settings page
- Message/text selection - Message/text selection
- Custom file picker for Linux... - Custom file picker for Linux...
- Way to round avatar corners to allow box radius - Way to round avatar corners to allow box radius
- If avatar is set, name color from average color?
- Accent color from background
- Major features - Major features
- E2E - E2E
@ -68,12 +68,16 @@
- Request room keys from own other devices - Request room keys from own other devices
- Auto-trust accounts within the same client - Auto-trust accounts within the same client
- Import/export keys - Import/export keys
- Uploads - Uploads & proper http thumbnails
- Reduce messages ListView cacheBuffer height once http thumbnails
downloading is implemented
- Read receipts - Read receipts
- Status message and presence - Status message and presence
- Links preview - Links preview
- Client improvements - Client improvements
- Set Qt.application.* stuff from C++
- Don't send a formatted_text if it's just `<p>plaintext</p>`
- [debug mode](https://docs.python.org/3/library/asyncio-dev.html) - [debug mode](https://docs.python.org/3/library/asyncio-dev.html)
- Initial sync filter and lazy load, see weechat-matrix `_handle_login()` - Initial sync filter and lazy load, see weechat-matrix `_handle_login()`
- See also `handle_response()`'s `keys_query` request - See also `handle_response()`'s `keys_query` request

View File

@ -31,7 +31,7 @@ HScalingBox {
HLabel { HLabel {
id: interfaceTitle id: interfaceTitle
font.pixelSize: theme.fontSize.big font.pixelSize: theme.fontSize.bigger
} }
} }

View File

@ -59,6 +59,7 @@ SwipeView {
font.pixelSize: theme.fontSize.big font.pixelSize: theme.fontSize.big
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
Layout.leftMargin: currentSpacing Layout.leftMargin: currentSpacing
Layout.rightMargin: Layout.leftMargin Layout.rightMargin: Layout.leftMargin

View File

@ -39,7 +39,9 @@ HRectangle {
text: displayName text: displayName
font.pixelSize: theme.fontSize.big font.pixelSize: theme.fontSize.big
elide: Text.ElideRight elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
Layout.fillHeight: true
Layout.maximumWidth: Math.max( Layout.maximumWidth: Math.max(
0, 0,
row.width - row.totalSpacing - avatar.width - row.width - row.totalSpacing - avatar.width -
@ -53,7 +55,9 @@ HRectangle {
text: topic text: topic
font.pixelSize: theme.fontSize.small font.pixelSize: theme.fontSize.small
elide: Text.ElideRight elide: Text.ElideRight
verticalAlignment: Text.AlignVCenter
Layout.fillHeight: true
Layout.maximumWidth: Math.max( Layout.maximumWidth: Math.max(
0, 0,
row.width - row.totalSpacing - avatar.width - row.width - row.totalSpacing - avatar.width -

View File

@ -41,14 +41,17 @@ Column {
HLabel { HLabel {
id: accountLabel id: accountLabel
text: userInfo.displayName || model.userId text: userInfo.displayName || model.userId
font.pixelSize: theme.fontSize.big
elide: HLabel.ElideRight
leftPadding: sidePane.currentSpacing leftPadding: sidePane.currentSpacing
rightPadding: leftPadding rightPadding: leftPadding
elide: HLabel.ElideRight
Layout.fillWidth: true Layout.fillWidth: true
} }
HTextField { HTextField {
visible: false // TODO
id: statusEdit id: statusEdit
text: userInfo.statusMessage text: userInfo.statusMessage
placeholderText: qsTr("Set status message") placeholderText: qsTr("Set status message")

View File

@ -23,7 +23,7 @@ QtObject {
property int smaller: 8 property int smaller: 8
property int small: 13 property int small: 13
property int normal: 16 property int normal: 16
property int big: 24 property int big: 22
property int bigger: 32 property int bigger: 32
property int biggest: 48 property int biggest: 48
} }