/srv/irclogs.ubuntu.com/2017/02/20/#ubuntu-app-devel.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
kalikianaMirv: bzoltan Can one of youse add daker to https://launchpad.net/~ubuntu-sdk-team ?08:00
Mirvlet me at least start a CI for that MP manually08:04
kalikianadaker: Replied on bug 166189009:01
ubot5bug 1661890 in ubuntu-ui-toolkit (Ubuntu) "TextField in a Dialog returns nothing if prediction is enabled" [Undecided,Incomplete] https://launchpad.net/bugs/166189009:01
=== chihchun is now known as chihchun_afk
dakerkalikiana: hi, thanks for the replies, is this test correct https://paste.ubuntu.com/24034225/ ?15:09
kalikianadaker: Maybe I'd do compare(selector.count, model.count) if the model you're using for the test allows that. But yeah, looks fine15:51
dakerkalikiana: yes that's i did : compare(selector.count, customModel.count);15:52
kalikianadaker: Okay, great15:52
dakerkalikiana: i have also proposed some RTL fixes in multiple MRs15:57
dakeron issue i did found is how can i mirror the icon of an Action ( aka this bug 1665938 )15:58
ubot5bug 1665938 in ubuntu-ui-toolkit (Ubuntu) "Pagestack backAction should point to the right in RTL" [Undecided,New] https://launchpad.net/bugs/166593815:58
daker?15:58
dakers/on/one15:58
kalikianadaker: Two options. If all you need is to literally mirror it, you could do mirror: LayoutMirroring.enabled on the Image (http://doc.qt.io/qt-5/qml-qtquick-image.html#mirror-prop). Or you create an 'rtl icon16:12
kalikianain the theme16:12
kalikianaThe latter is what we usually do and I'd say is better becasue any theme can customize it more easily16:12
kalikianaTrying to think of an example of the latter16:13
dakerfor the listview i used mirror since the progress is juste an image16:13
kalikianaIf an exact mirror is all you need, then mirror should be okay16:14
dakeri think the back button is the only element that needs a change of orientation on the pageheader(in RTL mode)16:15
dakerthis means changing the internal of the Action ? for just one element ?16:16
dakeror add a new prop to the api ? mirror ?16:16
dakerwell i think just copy the icon an mirror it then passe it the Action instead16:19
kalikianadaker: That's why using the API is not perfect :-D It depends on the icon used whether it needs to be mirrored, so mirror: only makes sense if you know what the icon is. And adding that to the Action API would imho be awkward because app devs shouldn't need to care about something that's always true/false for the same icon16:25
dakerok then i'll just copy the chevron image and flip it16:27
dakerhmm ok not sure this will work16:29
dakerhttps://www.irccloud.com/pastebin/XTe6WMMT/16:31
dakernot sure how to mirror it :D i don't think the theme does have a forward button16:32
kalikianadaker: 'back' is the icon name. That stays the same. Just in this case you want two files on disk, eg. back.svg and back-rtl.svg.16:33
kalikianaI'm not sure if we've ever tested this properly, though, it's possible that it also needs a fix in our icon loader - if that's the case I can probably help you with that.16:34
dakerkalikiana: you mean that's the icon loader will detect the rtl mode and will load "back-rtl" instead ?16:35
kalikianadaker: Yes16:36
dakerkalikiana: ok i see16:36
kalikianadaker: So wherever that icon is used, it'll be mirrored correctly16:37
dakerkalikiana: yes but since the icons are from the theme, back-rtl need to be add to the theme right ?16:38
kalikianaWe have those for media-playback/preview in suru atm16:38
kalikianadaker: Yes16:38
dakerkalikiana: i'll test that16:39
kalikianadaker: So to be clear, I couldn't find the code for -rtl handling, either it's done in Qt, or we might need a small fix in src/UbuntuToolkit/ucscalingimageprovider.cpp if -rtl isn't detected16:40
dakeri'll try to look at the code to see if i can find something16:41
=== JanC is now known as Guest41946
=== JanC_ is now known as JanC

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!