/srv/irclogs.ubuntu.com/2016/03/24/#ubuntu-app-devel.txt

=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chesedo- is now known as chesedo
tsimonq23 am hack, https://developer.ubuntu.com/en/start/ubuntu-sdk/installing-the-sdk/ refers to Wily as the development release08:13
tsimonq2not a wiki so I can't easily update08:13
nik90jdstrand, I took the liberty of updating permy to the latest sdk, https://code.launchpad.net/~nik90/permy/update-permy-1.3/+merge/29000008:19
nik90jdstrand, I believe setting it up for translation shouldn't be too difficult either. I will see if I can fix that as well.08:19
davidcalletsimonq2: nice catch. /me fixes08:45
tsimonq2davidcalle: thanks :)08:50
tsimonq2davidcalle: yay for using apt instead of apt-get :D08:50
timpjamiey: hello09:30
timpjamiey: can you have a look at https://bugs.launchpad.net/ubuntu-ux/+bug/1393485 comment 10?09:31
ubot5Launchpad bug 1393485 in Ubuntu UX "[SDK] Need a standard way to make an Icon look disabled" [High,Fix committed]09:31
timpjamiey: there may be some confusion whether to disable ("grey out") or hide actions in the header that are not available09:32
ahayzentimp, o/ in answer to your question last night, we tried todo enabled=false with rc-proposed a few images back and it didn't work... that's why we had to use visible=false and i was wondering if disabled is going to be supported?09:35
timpahayzen: while I was checking that the icon opacity was correctly updated for the header, I noticed that it was already fixed with the new palette09:36
timpthat's the current rc-proposed image I think09:36
timpahayzen: so maybe it got fixed recently09:36
ahayzenok so maybe we should test again :-)09:36
timpahayzen: and, as I commented on the bug, it seems not the best idea to change the opacity in the Icon09:36
timpahayzen: because if the components that use Icon also set the opacity, that is multiplied with the icon opacity and that makes it almost invisible in some cases09:37
ahayzenjust dim it? Qt.darker() ?09:37
ahayzenanyway i'm sure you've come up with the best solution :-) I'll tell Victor we should try reverting that change :-)09:38
timpahayzen: no, components should just use the palette properly now09:38
timpahayzen: for example, the icon buttons for the header have this:09:38
timp    property color foregroundColor: styledItem.enabled09:38
timp                                    ? theme.palette.normal.backgroundText09:38
timp                                    : theme.palette.disabled.backgroundText09:38
ahayzenah cool :-) we need to migrate from our horrible styling setup to the new palette now :-)09:38
timpzsombi is working on making the palette selection automatic so that we can instead use something like foregroundColor: autoPalette.backgroundText09:39
ahayzenooo nice09:39
timpahayzen: in case you didn't see this, zsombi published this yesterday which is a good read when you start using the new palette https://developer.ubuntu.com/en/apps/qml/tutorials/ubuntu-ui-toolkit-palette/09:43
ahayzentimp, yeah i saw that and the 'roadmap to uitk 2.0' ... exciting times :-D09:44
timpbusy times :)09:44
ahayzenhehe :-)09:44
zsombiahayzen: but we expect you to join that ;)10:43
ahayzen:-)10:44
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
jdstrandnik90: thanks! I'll take a look when I have a bit of time (possibly the weekend)14:04
nik90zsombi, hey, I'm having trouble deciding which elements are part of "background" and "foreground".14:36
nik90if I have a standard label, is that the foreground or background?14:36
nik90I am presuming, if I had a listview, then the listitem labels are in the foreground...while a generic label{} inside a Page{} is still in the background?14:36
nik90faenil ^^14:37
faenilmmm14:43
nik90The distinction between overlay and the other layers are perfectly clear.14:44
nik90but background and foreground is a bit difficult14:44
faenilit's not clear to myself either14:45
faenilbut I asked a designer to join :)14:46
nik90:)14:46
faenilnik90: in a meeting, it will take a while :)15:01
nik90faenil, np..just continuing with my work. pls ping if you're talking to them.15:01
faenilnik90: but if I were you, I'd leave a comment to the post as well, so other people can get the reply as well :)15:01
nik90Ok15:01
raeshambrooknik90: ping15:25
nik90raeshambrook, pong15:27
nik90raeshambrook, I had a question about the background and foreground layers mentioned in the SDK palette blog post. It is a bit difficult to distinguish the uses cases of the two.15:29
nik90How do you decide which elements are part of the background or foreground layer?15:29
nik90timp, Hey, does the page section headers follow the palette? I would expect them to be using theme.palette.selected.selectionText or theme.palette.selected.selection color. But changing either of them does not do anything.15:33
nik90timp, looking at https://developer.ubuntu.com/en/apps/qml/tutorials/ubuntu-ui-toolkit-palette/, only .selection has the blue color that I notice the page section headers using.15:34
timpnik90: the SectionsStyle is using:15:37
timptheme.palette.selected.backgroundTertiaryText15:38
nik90timp, Do you know where to use  theme.palette.selected.selectionText ?15:38
nik90this is very confusing15:38
timpnik90: http://pastebin.ubuntu.com/15487927/15:38
timphmm15:39
timpso it is using backgroundTertiaryText15:39
nik90I mean I understand the use of backgroundText there...but then what's the use of selectionText if we already have a selected mode?15:39
nik90aren't they redundant?15:39
timplet me see if I can find the specifications for that15:39
timpnik90: good question15:40
timpnik90: where did you see selectionText?15:41
timpit is backgroundTertiaryText15:41
nik90timp, in the blog post at https://developer.ubuntu.com/en/apps/qml/tutorials/ubuntu-ui-toolkit-palette/15:41
nik90timp, I section a section called "Selected" in which the palette values listed are "selection" and "selectionText"15:42
nik90which imo contradicts with the theme.palette.selected mode.15:43
timpnik90: you think we could have called it theme.palette.selected.text instead?15:43
timphmm15:44
faeniltimp: he's asking the reason for selected.selectedText and selected.backgroundText etc I believe15:44
faenilraeshambrook: ^15:44
faenil(I'm not even sure they both exist, I guess they do)15:44
nik90faenil, yup, spot on :)15:44
nik90well its selected.selectionText and selected.backgroundText that confuses me15:45
faenilyeah15:45
timpfaenil: yes they both exist15:45
timpyou could have theme.palette.backgroundText too15:46
nik90when I noticed the page section headers, I understand they're using some part of the selected mode since they're blue by default. But couldn't figure if they used selected.backgroundText or selected.selectionText.15:46
nik90really?15:46
nik90I thought you needed to specify whether it is normal, disabled, selected or highlighted?15:46
faeniltimp: without any set specified?15:46
timpso, https://developer.ubuntu.com/en/apps/qml/tutorials/ubuntu-ui-toolkit-palette/ says "These are the colors applied to components that have selected content. This should not be confused with the entire component’s selected state. For example text in an editable text field." for Selection15:46
timpfaenil: err.. I meant theme.palette.normal.backgroundText, and theme.palette.normal.selectedText15:48
faenilah ok15:48
timpso I guess you can have selected text anywhere, even in an non-selected component15:49
nik90but that isn't logical though using selected text in a non-selected component15:49
timpor, in a selected textfield you have both foregroundText and selectedText15:49
timpnik90: maybe not, but in the selected component you can have both15:49
nik90yeah I suppose so15:49
timpI don't know if there is a use case for selected text in an unselected component15:50
nik90ok so timp, coming back to the page sections, since they are selected & also part of a selected cdomponent, shouldn't they be using theme.palette.selected.selection? instead of theme.palette.selected.backgroundTertiaryText?15:51
nik90I mean why even Tertiary in the first place?15:51
timpbut you need selectedText and foregroundText for the selected textfield15:51
nik90 Why not secondary or just plain backgroundText15:51
nik90timp, I am only referring to the page head section which do not have textfield...the one that accepts models and show labels.15:52
timpI don't know15:52
timpwe need to ask raeshambrook / jaimey / zsombi15:52
timpnik90: Page.head.sections is deprecated by the way, use something like header: PageHeader { extension: Sections { } } now15:53
timpnik90: but your questions about the colors are still valid15:53
nik90because the current scenario will force app devs to look into the SectionsStyle.qml file to figure out what its using rather than thinking logical to assign them.15:53
nik90timp, I'm using PageHeader { extension: Sections {}}15:53
nik90I have transitioned all apps to that :)15:53
nik90all apps that I contribute to*15:53
timpgreat :)15:54
timpI wasn't sure because you called it the page head sections :)15:54
nik90ah yes...my bad15:54
ahayzentimp, hang on PageHeader { extension: Sections {}} ? not ... PageHeader { sections.model: [...] } ?15:59
ahayzenshould i not be using that?15:59
timpright, it seems like the backgroundTertiaryText is only used in the SectionsStyle15:59
* ahayzen wonders if that is causing a bug he is stuck on15:59
timpahayzen: that sections property is also deprecated. It uses Sections internally, but we replaced it by the more flexible extension property which can contain any Item16:00
ahayzentimp, ok, so i should use the  extension: Sections {} ?16:01
timpahayzen: it is better if you switch to extension: Sections { model: ... }, but if you have a bug that probably won't be fixed.16:01
timpyes16:01
ahayzenok16:01
ahayzenmy bug is a bit weird, when i change section... the header sometimes disappears, i think it is related to the flickable property also changing at the same time16:01
ahayzenstill investigating16:01
timpahayzen: there is an example here https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.PageHeader/16:02
ahayzentimp, there isn't a header.show() method anymore ? that i could use ?16:02
timpahayzen: you can say header.exposed = true16:02
ahayzentimp, ok thanks, i'll have a play when i get a moment, see if i can figure out what is going on16:03
ahayzenit is the last thing stopping our convergence landing :-/16:03
timpoh, looking forward to see the results :)16:03
ahayzenhaha16:03
timplet me know if you get stuck with this bug16:03
ahayzenyeah it'll probably be next week that i get back onto it unfortunately, we'll see16:04
ahayzenthanks :-)16:04
timpchanging contentY of the header's flickable might hide the header (in the same way the header hides when you scroll the flickable contents)16:05
nik90timp, hey if you still have the page open, can you paste the url to the style? I am having trouble finding it.16:07
timpnik90: which style?16:08
nik90timp, the SectionStyle.qml16:09
nik90that we were discussing above16:09
nik90I looked under http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/trunk/files/head:/src/Ubuntu/Components/Styles/ but couldn't find it16:09
timpthat's a file on my harddisk ;)16:10
nik90ah :P16:10
timpright, we didn't expose the API in styles yet16:10
nik90so I look at the theme's selected palette values.16:10
timpnik90: http://bazaar.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/staging/view/head:/src/Ubuntu/Components/Themes/Ambiance/1.3/SectionsStyle.qml16:10
nik90ah yes..that's it..thnx16:11
timpso it is only in the theme, not in the Style. That means the API is not guaranteed to be stable.16:11
* nik90 cries :/16:14
nik90I don't want to be overriding the page section style on every page..I just want to override the palette color and get over it.16:14
timpnik90: what do you want to accomplish? Different colors for the sections?16:16
nik90timp, yes..I want the section colors to be green to match podbird's color palette.16:16
nik90I don't want blue16:16
nik90and right now I'm overriding the style by StyleHints { selectedSectionColor: podbird.appTheme.focusText }16:17
nik90which isn't ideal since I need to do it in every page that has page sections.16:17
timpnik90: so that would be backgroundTertiaryText16:17
timpselected.backgroundTertiaryText16:17
nik90timp, I know it now after looking at the docs. But you just said it is not set in stone, so a potential UITK update could break podbird.16:18
timpah. The API for the SectionsStyle is not set in stone, right. That means it is not 100% guaranteed that the sections style will have a selectedSectionColor16:19
timpbut I think the reason we don't have it yet is that I didn't have time yet to add the SectionsStyle to Styles/16:20
nik90well more like in the future you could change that selected.backgroundTertiaryText and then boom podbird reverts backs to using the blue color.16:20
nik90but I understand. I think for now, I will be in the safe side, and use hardcoded colors.16:21
timpright16:21
timpI don't think we'll just start changing the colors used in the styles, but the new palette landed only recently so maybe we will discover issues with it that makes us change it16:22
nik90indeed16:23
timpnik90: are you still enjoying the Netherlands? :)16:47
nik90timp, yeah..tbh weather is not bad...no strong winds or constant rain...can't complain :P16:49
timpnik90: oh that's not too bad. I escaped because of the wind and rain ;)16:50
timpbut I'll pass by the country for a few weeks in May :)16:50
nik90haha...yeah you said so.16:50
nik90I'm going back to India hopefully by end of april..not sure yet.16:51
timpI have never been to India. The closest I have been is probably Thailand or Malaysia16:52
timpI remember in Malaysia (Penang) they had awesome Indian food :)16:53
timpthat was when I discovered that vegetarian food doesn't have to be disgusting ;)16:53
timpok disgusting is the wrong word. But the Indian food was the first vegetarian food that I really liked.16:53
timpnik90: you go back for holidays or to live?17:00
nik90timp, to live :) ..hopefully I can build a app developer community there17:10
nik90timp, yeah you can truly be happy being vegetarian in India...too many varieties.:)17:17
jamieytimp you still around?17:43
timpjamiey: hi17:43
jamieytimp Hey! – Just checking that the comment on that bug was resolved?17:44
timpjamiey: do you have the link to the bug?17:44
jamieytimp https://bugs.launchpad.net/ubuntu-ux/+bug/139348517:44
ubot5Launchpad bug 1393485 in Ubuntu UX "[SDK] Need a standard way to make an Icon look disabled" [High,Fix committed]17:44
jamieytimp it was the bit about hiding / disabled actions in the header17:44
jamieytimp comment 1017:45
jamieytimp :-)17:45
timpjamiey: right. Something else came up, nik90 was asking why we have a backgroundTertiaryText for the sections17:45
jamieytimp instead of what? (Sorry, not sure what the question is?)17:46
timpjamiey: about the hiding/disabling actions in the header, that is not something to fix in the UITK, because both are possible. As I understood from ahayzen, apps should hide inactive actions, but he thought it would be more clear in his case to only disable them17:46
jamieytimp cool, I thought so17:47
jamieytimp about the bug17:47
jamieytimp nik90 Can I check what the question was about "backgroundTertiaryText"?17:48
nik90jamiey, sure...let me explain that.17:49
timpjamiey: I'm reading back myself now17:49
timp<nik90> timp, Hey, does the page section headers follow the palette? I would expect them to be using theme.palette.selected.selectionText or theme.palette.selected.selection color. But changing either of them does not do anything.17:49
timpah, better if nik90 asks since he is here now :)17:49
jamieynik90 cool, thanks :-)17:49
jamieytimp :-)17:49
nik90jamiey, I see that we have a selected set which provides way to set the color selected components. For the page sections, I would expect the color to be set as theme.palette.selected.selectionText17:50
nik90but instead it is implemented as theme.palette.selected.backgroundTertiaryText which is not logical for app devs.17:50
jamieynik90 okay, I think I understand :-)17:50
nik90I mean why tertiary in the first place? Why not just use backgroundText or selectionText17:50
nik90jamiey, also, it gets confusing when you do theme.palette.selected.selection...isn't it a bit redundant? When I use selected, it is already implemented I am going to only target selected components. I don't get the need for selection and selectionText there.17:52
nik90something like theme.palette.selected.backgroundText should suffice.17:52
jamieynik90 So we introduced 'secondary' and 'tertiary' into the palette to allow us a hierarchy of colours for the text. So that all the text isn't simply the black. It's a lighter grey.17:52
nik90maybe I'm missing to see a use case17:53
nik90s/missing/failing17:53
jamieynik90 the "selected.selectionText" and "selected.selection" are used for when a user 'selects' some text (highlights it before cutting / copying etc)17:53
nik90that's why I thought..and makes sense. But in the page section, there is *only* 1 label..so there defining its color as tertiary is a bit strange.17:54
jamieynik90 that's the usage at the moment anyway. Interesting to hear it doesn't really make sense to you. I'll check in with Zsombi on this17:54
jamieynik90 I see what you mean17:54
jamieynik90 let me speak to zsombi about this, maybe file a bug? (did you already?)17:55
nik90jamiey, I haven't filed a bug yet..I will do so now.17:55
nik90I only talked to timp and rae about this.17:55
jamieynik90 cool, I get where you're coming from. If you file a bug we'll look at it :-)17:56
nik90jamiey, awesome. thnx17:56
jamieynik90 np. Have a good holiday! :-)17:57
nik90:)17:57
timpnik90: keep in mind that the palette is "global", for the whole app. So even if the section has only one label, if the color has to be different from other labels, it needs a separate entry in the palette17:57
nik90timp, understandable which is why I acknowledged the need for secondary and tertiary variables. But I don't see the need for it to be used in page sections color definition.17:58
nik90timp, infact I did use secondary and tertiary for the listitemlayout where you have 3 potential labels.17:58
timpnik90: right. But you don't have a special palette for the sections only, so if it uses the same color as the tertiary in listitemlayout, you use the tertiary color from the palette17:59
nik90timp, true..it is getting difficult..but I was just explaining it from app devs perspective.18:01
timpnik90: if you use backgroundText, the sections would use the same color as the title in the header18:03
nik90timp, no they won't ...or rather they shouldnt since the header should be using theme.palette.normal.backgroundText rather than theme.palette.selected.backgroundText.18:03
timpbut report the bug anyway, we can have a look at how to explain it better18:03
timpnik90: the sections use normal.backgroundTertiaryText for the unselected sections, and selected.backgroundTertiaryText for the selected section18:05
nik90I did notice that and I think that's wrong imo :P18:05
nik90hmm actually what you're saying is starting too make sense.18:05
nik90you're using tertiary to differentiate between the main header text and the section header text18:06
timpnik90: I had the same confusion at first, but now that I'm reading the code and trying to answer your questions I start to understand it myself :)18:06
nik90but app devs can't be expected to think like that.18:06
timpthe palette is for the whole app,18:07
timpI think we can explain it better if there was a mockup of an app with all the components, showing all the colors in the mockup18:07
timpjamiey: didn't we have something like that?18:07
nik90yeah +100018:07
nik90that might help app devs who want to override the default palette colours18:07
timpyes18:08
nik90https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/156166818:09
ubot5Launchpad bug 1561668 in ubuntu-ui-toolkit (Ubuntu) "SectionStyle shouldn't use backgroundTertiaryText to set the color of selected section" [Undecided,New]18:09
nik90jamiey, ^^18:10
jamieytimp nik90 Thanks! (got it) ;-) I think an app mockup would be useful too, especially with all the different states / colour labeled… 18:10
timpjamiey: I added ubuntu-ux to the bug, but you need to assign yourself to the bug in the project because I don't have rights to do that18:13
timpand I commented18:14
jamieytimp nik90 Got the bug, thanks guys! I'll get onto that visual… :-)18:17
timpI assigned the UITK part of the bug to myself.18:17
nik90jamiey, awesome!!!18:18
timpI think there is nothing to do from the UITK side, but I'll think more about it after easter18:18
timpand as long as the bug is in my list, I won't forget to bug jamiey about it ;)18:18
nik90timp: Just a tiny reminder that the field color is missing from the blog post. I believe field is used in textfield (told by rae).18:18
timpzsombi: ^18:19
jamieytimp har har ;-)18:19
jamieytimp probably my fault on that 'field' thing18:19
jamieytimp will need to add it in.18:19
timpokay18:19
nik90jamiey, timp: Enjoy your easter hols :)18:19
timpnik90: you too18:19
timpthanks18:19
jamieynik90 thanks! you too :-)18:19
AliasbodyHello everyone, I have a problem with my first ubuntu touch app, and I don't know if this is the right place to ask those questions. My qt app has c++, qml and js code, and it has multiple qrc for the images, the js, qml and other content. My app builds and runs on an Ubuntu Touch, but when I create the click application to make it to the ubuntu st18:45
Aliasbodyore the application only has 700kb (which is impossible since the whole application has at least 5mb), what is missing?18:45
nik90Aliasbody, WHy don't you open the click package and check what's missing?18:49
nik90Aliasbody, You can open the click using ArchiveManager18:50
nik90Elleo, hey, when does SingleDownload{} assign downloadId? When I call download() or only when the actual download starts18:50
Aliasbody@nik90 I see that the cpp and qrc files seems to be missing but I don't understand why. Why does the "run on device" copies everything to the mobile but the doesn't make it to the click file? What is sent to the mobile? Is it only the click or is it something else?18:51
nik90Aliasbody, run on device creates a click and then installs on the device.18:52
nik90How are you creating the click?18:52
nik90Aliasbody, Infact you should find the click package created by run_on_device in the build folder18:52
AliasbodyI'm creating the click by running the "Build and validate" from the Ubuntu SDK, that Click has the same size has the click file on the build-XXXX package from the release compiled version18:53
nik90ok, check if that clicks installs and runs on device as expected.18:54
nik90the cpp files are missing because a binary was built18:54
nik90after all its a c++ app18:54
AliasbodyI can only test on one device, I never managed to get the emulators running (neither the armhf or the i386, they simply don't load no mather what), so I can't be sure if everything is okay, the only way would be to fully format the phone and install the click file with the pkcon package.18:54
nik90Aliasbody, nah...if you install on device and then are able to run from the dash, you are set.18:56
Aliasbodynik90 So, if I uninstall the app, then install it again via pkcon with the built click from the publish (using --allow-untrusted) and it runs, it means that it will work everywhere?18:57
nik90Aliasbody, I would assume so since when you install a click package it basically overwrites the install directory.18:59
nik90if you're still unsure, you could ask others to test it for you in this channel.18:59
Aliasbodynik90 I mean, I've already published it on the store because I have to other way to test it, 5 people already download it but since I have no feedback I be sure. This is a borrowed Nexus 4 with Ubuntu Touch OTA 9.1 (build #28), and I only had a few hours to make it work on the Ubuntu Touch since the app is already made for Android and iOS.18:59
nik90Aliasbody, what's the app name? I can test right now19:01
Aliasbodynik90 Well maybe I'm only stressing about a non existing problem.19:01
nik90:)19:01
Aliasbodynik90 The app is called Heebo19:01
Aliasbodynik90 Thank you for taking your time to help19:01
nik90Aliasbody, works beautifully!19:03
nik90nice game19:03
Aliasbodynik90 Wonderful :) Thank you once again for everything, I feel stupid for being so stressed about something like that but since I don't own a Ubuntu Touch phone myself it was a "one-try" for this to be built for Ubuntu and published :) Once again thank you for everything19:05
zsombinik90: timp: about the field color... the post was laying there for quite some time and Jamie thought we are not using that palette anymore... I'll fix it19:05
nik90Aliasbody, yw :) ..Congrats on your app..great first app for UT.19:05
Aliasbodynik90 Just one last question, I'm not in front of my Ubuntu machine right now but, any questions related with the emulator could be asked here or is there any specific chanel?19:05
nik90Aliasbody, this channel is for all app-development related questions..so yes you can ask about the emulator as well.19:06
Aliasbodynik90 Perfect then, tomorrow when I'm in front of my Ubuntu machine at the office I'll connect here again in order to try to solve my emulator problem. Once again, thank you for everything, have a rest of a nice day :)19:07
nik90Aliasbody, sure, although tomorrow is good friday..so activity might be low/non-existent.19:08
nik90Aliasbody, enjoy ur day as well19:08
AliasbodyYou might be right :)19:09
AliasbodyThank you19:09
zsombinik90: so, is now everything OK with the palette values? :)19:11
nik90zsombi, it is a bit confusing to use..I have reported a bug about it. jaimie will create a visual to better explain it to app devs.19:12
nik90zsombi, without looking at the uitk code, it is difficult to know which palette value to override to customize a sdk component.19:12
zsombinik90: as said, the next is to document components to reflect which palette values they use...19:13
nik90yes indeed19:13
=== davmor2 is now known as davmor2_HOLS

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