new scaling system pass one #457

Open
erinn wants to merge 4 commits from newzoom into master
Owner

needs opaque merged first

needs opaque merged first
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/951

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/951
dan requested changes 2020-12-15 22:26:44 +00:00
dan left a comment
Owner

I'll need to download and test the MyProfile changes. I thought the reason I had a function there was QML basically said doing anything complex with just properties is undefiend so for changes like we want there do it with an ugly function

I'll need to download and test the MyProfile changes. I thought the reason I had a function there was QML basically said doing anything complex with just properties is undefiend so for changes like we want there do it with an ugly function
@ -62,3 +55,1 @@
font.pixelSize: 18 * gcd.themeScale
text: qsTr("peer-not-online")
}
// Label {

This shouldn't be commented out

This shouldn't be commented out
erinn marked this conversation as resolved
@ -78,3 +77,3 @@
Opaque.Setting {
property color backgroundColor: parent.color
property color backgroundColor: "red"//parent.color

undebug :)

undebug :)
erinn marked this conversation as resolved
@ -46,3 +47,2 @@
ChatOverlay { //0
Layout.maximumHeight: overlayStack.height
Layout.maximumWidth: overlayStack.width
// Layout.maximumHeight: overlayStack.height

if we don't need them then we should delete?

if we don't need them then we should delete?
erinn marked this conversation as resolved
@ -367,3 +366,3 @@
Opaque.Button { // ADD or SAVE button
height: Theme.primaryTextSize * 1.5
//height: Theme.primaryTextSize * 1.5

switch to new textSize?

switch to new textSize?
Author
Owner

it calculates its own height

it calculates its own height
erinn marked this conversation as resolved
@ -38,3 +36,3 @@
RowLayout {
width: 700 * gcd.themeScale
//width: 700 * gcd.themeScale

I think this did need a min size of some kind?

I think this did need a min size of some kind?
Author
Owner

maybe an android thing?

maybe an android thing?
erinn marked this conversation as resolved
@ -46,3 +44,2 @@
//Layout.fillWidth: true
Layout.maximumWidth: 450 * gcd.themeScale
Layout.minimumWidth: 450 * gcd.themeScale
//Layout.maximumWidth: 450 * gcd.themeScale

delete?

delete?
erinn marked this conversation as resolved
@ -56,1 +54,3 @@
serverAddEditPane.server_available = !serverAddEditPane.server_available
checked: serverAddEditPane.server_available
onCheckedChanged: function() {
//serverAddEditPane.server_available = !serverAddEditPane.server_available

uncomment

uncomment
erinn marked this conversation as resolved
@ -80,1 +78,3 @@
serverAddEditPane.autostart_server = !serverAddEditPane.autostart_server
checked: serverAddEditPane.autostart_server
onCheckedChanged: function() {
//serverAddEditPane.autostart_server = !serverAddEditPane.autostart_server

uncomment

uncomment
erinn marked this conversation as resolved
@ -71,3 +68,1 @@
// TODO: Actually do something with these keys
console.log("FOUND SERVER KEY " + key_names[i] + " " + keys[i]);
}
// console.log("Servers: " + key_names);

delete :)

delete :)
erinn marked this conversation as resolved
@ -80,2 +75,2 @@
value: gcd.themeScale
live: false
from: 0
to: 4

if there's only 3 vals? with a step size of 1, should it' be 0 to 2 inclusive?

if there's only 3 vals? with a step size of 1, should it' be 0 to 2 inclusive?
Author
Owner

from Theme.qml:

// magnification system: all size-sets should generally respect these semantics:
//
// scale
// 0 1 2 3 4
// padding S M M M L
// text S S M L L
//
// use the syntax "propertyName: propertyNameBase[p[scale]]" for padding that
// has S/M/L granularity (and likewise t[scale] for text)
// use the syntax "propertyName: propertyNameBase[scale]" for things that you
// would prefer have 0/1/2/3/4 granularity.

from Theme.qml: > // magnification system: all size-sets should generally respect these semantics: > // > // scale > // 0 1 2 3 4 > // padding S M M M L > // text S S M L L > // > // use the syntax "propertyName: propertyNameBase[p[scale]]" for padding that > // has S/M/L granularity (and likewise t[scale] for text) > // use the syntax "propertyName: propertyNameBase[scale]" for things that you > // would prefer have 0/1/2/3/4 granularity.
erinn marked this conversation as resolved
@ -172,0 +155,4 @@
experiment_id: "tapir-groups-experiment"
}
Opaque.Collapser {

shouldn't this be outside experiments?

shouldn't this be outside experiments?
Author
Owner

that would be lovely but ToggleFields can't go in Collapsers for some reason currently lmao

that would be lovely but ToggleFields can't go in Collapsers for some reason currently lmao
erinn marked this conversation as resolved
@ -172,0 +222,4 @@
}
Opaque.Label {
text: "dependencies, licenses?\nprofile icon pics\nfontawesome? other icon sources?\nmutant standard\nadobe blank\nopensans?"

possible lokalise too?

possible lokalise too?
Author
Owner

absolutely. and split up by bullet point so we can add/remove individual entries easily. soon!

absolutely. and split up by bullet point so we can add/remove individual entries easily. soon!
erinn marked this conversation as resolved
@ -105,3 +105,3 @@
iconColor: Theme.altTextColor
anchors.verticalCenter: parent.verticalCenter
//anchors.verticalCenter: parent.verticalCenter

delete?

delete?
erinn marked this conversation as resolved
@ -75,3 +67,1 @@
onResetServerList: function() {
serversModel.clear()
}
// onResetServerList: function() {

uncomment?

uncomment?
Author
Owner

never gets called

never gets called
erinn marked this conversation as resolved
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/961

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/961
Member

Drone Build Status: failure

https://build.openprivacy.ca/cwtch.im/ui/963

Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/ui/963
erinn changed title from wip: new scaling system pass one to new scaling system pass one 2020-12-17 03:42:21 +00:00
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/965

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/965
Owner

looks like all my comments are addressed. I would like to check it out and try it before final approval

looks like all my comments are addressed. I would like to check it out and try it before final approval
Owner

Left is newzoom, right is master

  • 1: open a profile
  • 2: open a chat when its wide enough for dual pane mode
  • 3: 'back' to close the chat
  • 4: i think open a chat, widen it more, close, open

some obscure part of QML docs warned that trying to do dynamic position changes with properties only was out of scope and unsupported hence I started using functions. you may want to restore and adapt the function, as hideous as it is, I had here

Left is newzoom, right is master - 1: open a profile - 2: open a chat when its wide enough for dual pane mode - 3: 'back' to close the chat - 4: i think open a chat, widen it more, close, open some obscure part of QML docs warned that trying to do dynamic position changes with properties only was out of scope and unsupported hence I started using functions. you may want to restore and adapt the function, as hideous as it is, I had here
Owner
  • way too much padding between MyProfile and the search bar on contactList
  • since the text magnification reference is in a collapser, do we want it in the zoom level area?
  • it's a nit but I think the profile name and onion are padded too far from the profile icon?
  • password entry field I think needs to be longer
  • the icons in the toolbar on top dont seem to be scaling quite along with the toolbar's overall size, so at higher magnifications they appear to be small icons floating in space
- way too much padding between MyProfile and the search bar on contactList - since the text magnification reference is in a collapser, do we want it in the zoom level area? - it's a nit but I think the profile name and onion are padded too far from the profile icon? - password entry field I think needs to be longer - the icons in the toolbar on top dont seem to be scaling quite along with the toolbar's overall size, so at higher magnifications they appear to be small icons floating in space
Owner
  • Makefile has -docker for linux
- Makefile has -docker for linux
This repo is archived. You cannot comment on pull requests.
No description provided.