/srv/irclogs.ubuntu.com/2014/11/05/#ubuntu-app-devel.txt

=== chihchun is now known as chihchun_afk
=== _salem is now known as salem_
=== salem_ is now known as _salem
jdstrandpopey: hey, I'm not sure what is going on with akari-- the upstream trunk has 0.1.3 but the store has 0.1.5. I just submitted https://code.launchpad.net/~jdstrand/akari/akari-fixes/+merge/240667 to upstream. if we are updating akari somewhere else, can we get that patch applied?01:44
liuxgdoes anyone know how to add some music tracks to my Nexus 4 device? Is there anyway to copy over via PC?04:09
=== penk-afk is now known as penk
mihirpopey: ping , Morning08:48
mihirpopey: i have responded on both the emails.08:48
=== Saviq is now known as Saviq-codedive
JamesTaitGood morning all; happy Stress Awareness Day! :-D09:15
DanChapmandpm, Good Morning :-) do i remember correctly, yesterady you said reminders ships it evernote account provider with the app? I'm trying to figure out what's needed to get an outlook.com provider setup, but there seems to be little documentation around this :-)09:22
=== chihchun_afk is now known as chihchun
dpmhey DanChapman, morning09:49
dpmDanChapman, sorry, got into another conversation. Yes, Reminders ships the Evernote account provider in the click package10:02
dpmhi penk, how are you getting on with the scope integration in Reminders? Have you had a chance to test https://code.launchpad.net/~mzanetti/reminders-app/libqtevernote/+merge/239496 ?10:11
mzanettio/10:11
dpmhey :)10:11
penkdpm: hi, yes tested that against reminder-app, works, am working on the scope10:13
penkdpm: also lp:~reminders-app-dev/reminders-app/uriHandler works for me10:13
mzanettipenk: please add an "Approve" comment to those merge proposals then10:14
mzanettidpm: just came across this one: https://bugs.launchpad.net/ubuntu/+source/apparmor-easyprof-ubuntu/+bug/138428610:14
ubot5Ubuntu bug 1384286 in apparmor-easyprof-ubuntu (Ubuntu) "add directory allowing scopes and apps to share data" [High,Confirmed]10:14
penkmzanetti: ok10:14
penkdpm: is it possible we start our weekly meeting 15mins earlier?10:14
dpmpenk, works for me. Let me ask mzanetti and rpadovani - would it work for you guys to start the reminders weekly meeting 15 mins earlier?10:17
DanChapmandpm right.. thanks :-) I'll go dig around reminders then and see how it's done10:18
dpmt1mp, I asked this question on askubuntu http://askubuntu.com/questions/545483/whats-the-difference-between-optionselector-and-itemselector - and now I noticed this comment -> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1384726/comments/4 - do you have more insight on that?10:19
ubot5Ubuntu bug 1384726 in Ubuntu UX "Allow an official way to achieve a "flat" ItemSelector appearance" [Undecided,Won't fix]10:19
mzanettidpm: worksforme10:19
dpmDanChapman, one thing to bear in mind is that the Reminders authentication plugin for Evernote is slighly more complex because it uses the Evernote API to get the account name. You can start simple and just create a plugin that uses oauth for authentication, it's just a bunch of files with little to no code at all (a Main.qml file you can get a template for from other online accounts in the system)10:21
dpmthis might not give you the account name, but for starters it should easily get you going with creating the authentication plugin10:22
penkmzanetti: approved, thanks https://code.launchpad.net/~mzanetti/reminders-app/libqtevernote/+merge/23949610:25
DanChapmandpm, ahh ok great i'll take a look at the others aswell then. Thanks!! :-)10:26
t1mpdpm: I'd say it was a mistake that we have them both10:26
t1mpdpm: basically one is in Ubuntu.Components, and one in Ubuntu.Components.ListItems, and their visuals are slightly different10:26
t1mpzsombi: is anything like an itemselector planned for the new list items?10:27
zsombit1mp: kinda yes, the ListItem.expansion is about to provide the base for that. However content must be given manually to have teh same things we have now in ItemSelector10:28
zsombit1mp: perhaps we can provide a different ItemSelector which is based on ListItem and provides same template as the current ItemSelector... and a bit more flexible if possible ;)10:29
t1mpzsombi: okay, eventually we can ^W^W^W^W yeah what you just said :)10:29
dpmt1mp, so we should start telling app devs not to use OptionSelector and use ItemSelector instead?10:33
t1mpgventuri: good timing. There was some discussion about itemselector vs optionselector10:36
t1mpdpm: I think we will keep them both for now, until we have the new list items and then a new selector based on those, and then they will both become deprecated10:36
t1mpzsombi: ^do you agree?10:37
zsombit1mp: I do10:37
t1mpgood :)10:37
dpmhi gventuri, so to give you some more context, I asked this question to t1mp -> "I asked this question on askubuntu http://askubuntu.com/questions/545483/whats-the-difference-between-optionselector-and-itemselector - and now I noticed this comment -> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1384726/comments/4 - do you have more insight on that?"10:38
ubot5Ubuntu bug 1384726 in Ubuntu UX "Allow an official way to achieve a "flat" ItemSelector appearance" [Undecided,Won't fix]10:38
zsombit1mp: fyi: I'm moving the panels (ListItemPanel, ListItemSelectionPanel) to the theme10:39
zsombit1mp: in this way themes can provide different designs if needed10:40
zsombit1mp: and subtheming will also be good with it ;)10:41
rpadovanidpm, is tomorrow, right? It's ok for me10:50
dpmcool, thanks rpadovani10:51
dpmpenk, time changed to 15 mins earlier10:52
t1mpzsombi: hmm10:55
t1mpzsombi: I think we can land the basic new list items even before we review the panels10:56
t1mpzsombi: the panels are only the contents right?10:56
zsombit1mp: no, the panels are the ones which provide the visualization o fthe actions...10:57
zsombit1mp: so it's in teh base functionality of the list item10:57
zsombit1mp: what you are talking about are the list item layouts10:57
t1mpah10:58
t1mpyeah I got confused10:58
t1mpzsombi: I'd say the API to define the actions is part of the list item, and the panel itself the theme10:59
zsombit1mp: that's what I'm after now, to move those things to teh theme10:59
gventuridpm: Hi. Yes I confirm what I said on Launchpad ;-)11:07
t1mpgventuri: was there a conceptual difference, or do they just look different?11:15
t1mpgventuri: as zsombi and I discussed before, we will just keep both around for now. So I guess the design guidelines will just recommend the OptionSelector11:16
t1mpgventuri: as I see it, only the visuals are different now11:16
zsombit1mp: gventuri: uhh, guys, pls decide where we go: OptionSelector always has a shape around the items, ItemSelector shouldn't have those...11:17
gventurizsombi: t1mp: OptionSelector must go...11:22
zsombigventuri: in or out?11:22
zsombigventuri: or away?11:22
gventuriGoing forward, we are not using the ubuntu shape to embed controls11:22
gventuriincluding time picker etc.11:22
gventuriaway!!!11:23
gventurizsombi: I assume ListitemSelector will have much better customisation options11:23
gventurizsombi: as we discussed11:23
zsombigventuri: oh, yes11:24
gventurizsombi: cool11:24
gventurizsombi: the optionSelector is dead for me11:24
gventurizsombi: long live ItemSelector11:24
zsombigventuri: thank you!11:24
t1mpgventuri: that sounds so mean11:25
zsombigventuri: long live until further notice :D11:25
gventurizsombi: and please let's keep the expansion in11:25
zsombigventuri: I have it on my todo list11:25
dpmgventuri, zsombi, t1mp, does the answer to my own question look reasonable to you guys? http://askubuntu.com/q/545483/978111:27
zsombidpm: yes, until further notice :)11:30
dpmok, thanks :)11:32
t1mpdpm: w.r.t. the ubuntushape, it is the opposite, in general we do NOT want to embed UbuntuShapes in the controls11:32
t1mpdpm: w.r.t. the ubuntushape, it is the opposite, in general we do NOT want to embed UbuntuShapes in the controls11:32
t1mpgventuri: ^ correct?11:32
brendandpopey, when will this calculator update be available? https://bugs.launchpad.net/ubuntu-calculator-app/+bug/136556411:33
ubot5Ubuntu bug 1365564 in Ubuntu Calculator App "Please remove text input annotations completely" [High,Fix committed]11:33
dpmt1mp, yeah, I meant that the plan going forward is to deprecate that. Let me rephrase it to make it clear11:33
t1mpdpm: or did you mean "deprecate (OptionSelector and embedding UbuntuShapes in controls)"11:33
dpmyep :)11:33
zsombit1mp: oh, man, it feels so good to have the panels in teh theme ;)11:37
t1mp:)11:37
zsombit1mp: that also means that we must move the backgroundColor/foregroundColor from ListItemActions to ListItem. The reason is that ListItem is the only styleable component so far. And it is more likely that ListItems want to visualize teh actions differently than to use a ListItemActions which has "hardcoded" visualization.11:41
t1mpzsombi: hold on..11:44
t1mpzsombi: the ListItemActions can be an API that is used for defining the actions, it doesn't have to have a hardcoded visualization11:44
t1mpzsombi: like the header's PageHeadConfiguration (page.head.config). It contains the actions, foreground color, ...11:45
t1mpbut the visualization is completely separate11:45
=== _salem is now known as salem_
popeybrendand: let me take a look11:59
popeybrendand: ah excellent, it landed...12:00
popeyMirv: could you please upload http://s-jenkins.ubuntu-ci:8080/job/calculator-app-click/lastSuccessfulBuild/artifact/out/com.ubuntu.calculator_1.3.339_all.click to the store when you get a moment, thanks!12:00
brendandpopey, in the meanwhile i'll just take that...12:02
brendandyoink!12:02
popeyheh12:02
dpmhi akiva-thinkpad, thanks for proposing the sessions for the online summit next week. I see there you've filed a few - just to confirm, are you going to attend/drive the sessions you're proposing?12:04
dpmargh, a second too late12:05
dpmhi akiva-thinkpad, thanks for proposing the sessions for the online summit next week. I see there you've filed a few - just to confirm, are you going to attend/drive the sessions you're proposing?12:05
zsombit1mp: yes, but right now the panel delegate is hardcoded in ListItemActions. What I'm doing I take that into ListItem, and that will take it from the theme12:06
aquariusI thought that if I had a Page containing a Column as the sole content of my MainView, then the SDK made sure that the content was scrollable for me?12:08
nik90aquarius: no, that would be a flickable or a listview12:09
dpmaquarius, I think you need to wrap it in a Flickable12:09
nik90not a column12:09
aquariusok, I'll stick it in a flickable then12:09
nik90or what dpm said would work as well12:09
akiva-thinkpaddpm, ah yah; I'll have to double check12:10
akiva-thinkpadFor go; I wanted to see if a go developer would come in and do a proposition. Its probably too late to do that now.12:10
mivoligomzanetti: ping12:10
dpmakiva-thinkpad, I think the topics are really good, but before approving the session, we need to make sure that there is someone to run the session12:11
akiva-thinkpadyep; exactly.12:11
mzanettimivoligo: hey12:11
mivoligomzanetti: have a time?12:11
mzanettimivoligo: hit me12:12
mivoligomzanetti: I reported few bugs just now12:12
mivoligomzanetti: also I put new UI for tower info dialog into the drive12:13
mzanettimivoligo: nice :)12:13
mivoligomzanetti: size of the current dialog is that you can see level pause dialog under it :)12:14
mzanettihehe12:15
mzanetticool, will fix those bugs and implement the design12:16
mivoligomzanetti: :) great12:16
mzanettimivoligo: for the adding tower I just change it how we discussed it via mail?12:16
mivoligomzanetti: yes12:16
mzanettiif field is selected and user clicks on tower -> add the tower12:16
mzanettiif no field is selected and user clicks on tower -> open tower info dialog12:16
mzanettiack12:16
mivoligomzanetti: I think when the field is not selected, the cost should disappear from the tower12:17
mzanettiyep12:17
mzanettiI'll play around with it a bit and you can then tell me how to improve it :)12:18
mivoligomzanetti: sure :)12:18
mivoligomzanetti: can you also implement the right colours everywhere?12:19
mzanettimivoligo: hmm... I thought I had that already12:19
mzanettimivoligo: but wanted to talk about that:12:19
mivoligomzanetti: hit me :D12:19
mzanettiso we have UbuntuColors. Which define some red, green, blue etc12:20
mzanettibut they are a bit different then your definitions12:20
mzanettisomehow I feel it'd be nice to go with the standard ubuntu definitions12:20
mivoligomzanetti: can I see these colors somewhere?12:21
mzanettimivoligo: you still on trusty or have you upgraded to utopic?12:21
mivoligohave utopic in vbox12:21
mzanettiah, then you should be able to just create a qml file with a rectangle and set color to12:22
mzanettiUbuntuColors.green12:22
mzanettiUbuntuColors.orange12:22
mzanettietc12:22
mivoligomzanetti: ok12:22
mivoligoI'll do that12:22
mzanettimivoligo: make sure to import Ubuntu.Components 1.112:22
mzanettimivoligo: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.UbuntuColors/12:23
mzanettimivoligo: apart from that, in machines-vs-machines.qml at the top, there are the color definitions for the game12:24
mzanettiI think it should be used everywhere, if it isn't please file bugs (or just tell me in IRC)12:24
mivoligomzanetti: I have black text on the Play! button for example12:25
mzanettihmm... I see...12:25
mivoligomzanetti: the dots are completely black too12:26
mzanettiright... ok. need to fix some stuff then12:27
davmor2popey, ahayzen: there are a few laggy bits but I think that is mostly because images were still loading, once all the images were in I didn't find anything particularly awful with the music app12:27
mivoligomzanetti: one more thing about the gameplay12:28
Mirvpopey: calculator uploaded to the store12:28
ahayzendavmor2, thanks for testing :), is this basically what you are describing with the slow images? https://bugs.launchpad.net/music-app/+bug/138781612:28
ubot5Ubuntu bug 1387816 in Ubuntu Music App "Card view can be slow to load thumbnails" [Medium,In progress]12:28
mivoligomzanetti: I noticed you don't get any money when selling some towers. I don't know if it's not finished yet or you just forget :D12:29
popeythanks Mirv12:30
popeydavmor2: yeah, i get that too12:30
popeyonce loaded it's fine12:30
popeybrendand: new calc hit the store, yay for automated reviews!12:31
mzanettimivoligo: right... tower prices are not correct yet12:31
mzanettimivoligo: I wanted to a) implement the changed add logic and b) wait for all the level backgrounds before finishing off the level pack12:32
mzanettimivoligo: I have a good idea how to do it now, but each change influences the gameplay and the level difficulty12:32
davmor2ahayzen: yeap, but things like scrolling feel slower while all the images are loading, once loaded it speeds up I'm assuming it is simply the level of memory and cpu being used to load the image and display them as well as moving the display etc12:32
mzanettimivoligo: so that's why I decided to not tweak them any more right now until the rest is finished...12:33
mivoligomzanetti: in other words: I have to do the backgrounds :D12:33
mzanettimivoligo: well, yeah, at some point yes. don't want to put pressure on you though...12:34
mivoligomzanetti: I know :)12:35
mivoligomzanetti: speaking of backgrounds: can we have bridges and tunnels?12:36
ahayzendavmor2, yeah that makes sense...also i is know the 'cardview' is slow because it attempt to load *all* of the thumbnails at once...and loads them backwards just to make it worse ;) lol12:36
mzanettimivoligo: we could, but it's not implemented12:36
mzanettimivoligo: we can have crossings though12:37
mivoligomzanetti: they working right now?12:38
mzanettimivoligo: yep12:38
mivoligomzanetti: :) good, so I'll concentrate on the backgrounds now12:39
mzanetticol12:39
mzanetticool12:40
mivoligocoool12:40
mzanetti:D12:40
mivoligomzanetti: oh, one more thing12:40
mivoligomzanetti: some time ago I put sound settings icon into the drive, so you can use it12:41
mzanettiah ok, cool.12:41
mzanettimivoligo: yeah, haven't been very active in the last 3 weeks. there was the sprint and then last weekend my bday...12:42
mzanettimivoligo: will ramp up again soon12:42
mivoligomzanetti: I'm guilty too12:42
mivoligomzanetti: anyway, I'm now thinking about these backgrounds and then we finish the UI12:45
mzanettiyep. shouldn't be too much left to do12:45
mivoligomzanetti: ok, see you around :)12:46
mzanettiyep12:47
mzanettio/12:47
davmor2charles, nik90: I know how much you love my bugs.  Fresh install with --revision -40 (image 102), Set timezone to New York 22:25, upgrade to the latest image alarm is now magically 04:25 :)13:16
davmor2charles, nik90: I know how much you love my bugs.  Fresh install with --revision -40 (image 102), Set timezone to New York, set an alarm at 22:25 (sorry missed some words there), upgrade to the latest image alarm is now magically 04:25 :)13:18
aquariusCan I style the popup that appears when I use a Slider component? In particular, make it appear somewhere other than above the slider?13:40
mzanettiaquarius: I don't think so13:51
aquariusbah13:51
mzanettiaquarius: well, shouldn't be too hard to implement your own one13:51
aquariusnot too hard, but there are a bunch of fiddly interactions with it13:52
aquariushence why I prefer using existing components where I can...13:52
mzanettiyeah... but I guess you'd have the same issues if you'd change/restyle the existing once13:52
mzanettione13:52
aquariusmzanetti, you might have an idea about my larger problem, here13:52
mzanettiyou might want to reconsider the reason why the default position doesn't work for you :)13:53
aquariusimagine a Page, with a header, containing a listview. If I scroll the listview, the header disappears, and comes back if I scroll up. Hooray13:53
aquariushowever. I would like, at the top of the listview, a text box13:53
aquariusand I want the text box to always be on screen13:53
mzanettimeh13:54
aquariusthe app is trivial -- a text box for text, and a listview of that text in all fonts.13:54
mzanettiyou still want the header moving?13:54
mzanettiif you keep the header fixed, this shouldn't be too hard... but the moving header in the SDK is quite a hack actually and only working properly when the first item in there is a ListView13:55
aquariusbut... I don't know how to get the magic header scrollability vanish stuff if the listview isn't the only child of a Page13:55
aquariusright. I don't want the header to stay fixed because, well, it takes up about a fifth of the screen :P13:55
aquarius(not quite that much, perhaps)13:55
mzanettiso what the header does is to set topMargin (*NOT* anchors.topMargin) on the ListView13:55
=== rmescandon is now known as rmescandon|lunch
mzanettiyou might be able to play around with that and increase that13:56
aquariushm13:56
mzanettior you could try to use the header property of the ListView13:56
mzanettiand put your textbos in there13:56
aquariussneaky13:57
aquariusnik90 suggested the listview header thing, but I couldn't get it to do anything :)13:57
mzanettiaquarius: I think you need to use a Component for it13:58
mzanettilike described in the first reply here: http://stackoverflow.com/questions/8089522/qml-listview-header-and-footer-items13:58
aquariusdo toolbar items have to be one of the actual Toolbar things, like a ToolbarBUtton? Or can I put a slider in the toolbar?13:58
mzanettiyou can't13:59
aquariusthe docs say "However, it is possible to include non-ToolbarButton Items inside ToolbarItems", but the only example given is a Button, which only has tap interactions, not slide interactions13:59
mzanettioh... well, if a button works, I don't see a reason why a slider would not13:59
aquariusmaybe I'll give that a try13:59
mzanettiI thought you can't put visual things in there, as Action {} is a non-visual item only holding information that the header draws itself13:59
nerochiaroartmello: hi, do you think you will have time at some point this week to see if it is possible to replace the custom header in the camera photo roll with the header+mainview from the SDK ?14:00
mzanettimy info on that might be outdated though14:00
aquariusah14:00
aquariusnow that tools appear in the header, rather than the drag-up-from-the-bottom toolbar, it seems that you can only put ToolbarButtons in it14:01
aquariusbah, again14:01
=== chihchun is now known as chihchun_afk
aquariusand the example on http://developer.ubuntu.com/api/qml/sdk-14.04/Ubuntu.Components.ToolbarItems/ is wrong, mhall11914:01
* aquarius files a bug14:01
artmellonerochiaro: yes, I could take a look on that this week14:03
nerochiaroartmello: thanks. please email me the branch when you do, if you don't see me here in irc14:03
aquariushttps://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1389711 filed.14:03
ubot5Ubuntu bug 1389711 in Ubuntu UI Toolkit "Toolbar documentation suggests any widget can go in tools, which is wrong" [Undecided,New]14:03
artmellonerochiaro: sure14:05
=== jgdxx is now known as jgdx
nik90davmor2: image 40? Which channel is this?14:07
davmor2nik90: -40 it goes back 40 images so the image is 10214:07
nik90davmor2: ah14:08
davmor2nik90: see not in brackets after the -40 :)14:08
davmor2s/not/note :)14:08
nik90davmor2: I think there was some change in EDS related to timezone changes ...can you reproduce it with the current image?14:08
nik90davmor2: as in, set an alarm for 10:00 and then change the timezone, does that change the alarm?14:09
davmor2nik90: I was testing ota so it would need to be triggered in an ota14:09
davmor2nik90: by going back 40 images you effectively trigger a fresh install but with data on14:10
nik90davmor2: well, after rtm, we will ota at which point this should work as expected since there wouldn't any more critical changes like that in the rtm distro?14:11
nik90between 102 and 142, a lot could have changed...but that doesn't mean a lot wil change between 142 and 182 for instance14:11
davmor2nik90: yes but between rtm and ota 2 there could still be a lot of changes and that is what we are looking for now :)  shaking the tree so to speak14:12
davmor2nik90: no but again it would be enough of a delta to trigger a full install which again might corrupt data14:13
nik90ah ok14:14
=== chihchun_afk is now known as chihchun
nik90zsombi: hey, I am not sure if charles brought this up with you, but there is a bug where when a single type alarm is triggered, it does not get automatically disabled or deleted by the system. And you mentioned that this is something indicator-datetime should do since it is the one which triggers the alarm.14:18
nik90zsombi: well charles fixed it by making indicator-datetime disable the alarm via the tasks.ics file. However the clock app does not update automatically to reflect the change.14:18
nik90only on restarting the clock app does it show the single type alarm as disabled.14:19
nik90this is all still in a branch and hasn't been released yet14:19
balloonsnik90, so the resolution on everything I thought I would share. Nothing seemed to work out, so I did something interesting. I hid the non text areas when keyboard appears and shrunk the boxes slighlty too14:31
=== rmescandon|lunch is now known as rmescandon
=== karni is now known as karni-afk
mhall119aquarius: what's wrong about it?14:50
=== karni-afk is now known as karni
popeymhall119: 14:03:50 < aquarius> https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1389711 filed.15:14
ubot5Ubuntu bug 1389711 in Ubuntu UI Toolkit "Toolbar documentation suggests any widget can go in tools, which is wrong" [Undecided,New]15:14
mhall119I believe you could in the bottom-edge toolbars in 14.0415:15
popeyyeah, he says that in the bug i think15:16
mhall119ah, it's present in the 14.10 docs too, he originally linked to 14.04 docs15:17
mhall119here in IRC15:17
mhall119so yeah, that's for the uitk developers to fix in the -doc packages15:18
mhall119I'm not sure ToolbarItems can be used at all with the header toolbar, it may only work with useDeprecatedToolbar: true15:19
mhall119in which case it might be accurate, but needs to be clarified15:19
nik90balloons: didn't the code diff I provided yesterday work out?15:21
t1mpaquarius: I commented on https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/138971115:25
ubot5Ubuntu bug 1389711 in Ubuntu UI Toolkit "Toolbar documentation suggests any widget can go in tools, which is wrong" [Undecided,New]15:25
jdstrandI'm having trouble with themes15:26
jdstrandI understand how to do this:15:26
jdstrandComponent.onCompleted: {15:26
jdstrand  Theme.name = 'Ubuntu.Components.Themes.SuruDark'15:26
jdstrand}15:26
jdstrandthat works fine (though, there are various bind loop detected errors15:27
jdstrand)15:27
jdstrandbut what I'd really like to do is define my own theme15:27
jdstrandI created a qmldir, MainViewStyle.qml, Palette.qml and parent_theme in Themes/Foo15:28
jdstrandbut when I do:15:28
jdstrandComponent.onCompleted: {15:28
jdstrand  Theme.name = 'Themes.Foo'15:28
jdstrand}15:28
balloonsnik90, no it didn't. I'd rather work on using the new header next. But othe rprojects take my attention for now15:28
balloonsnik90, at least for me it didn't work so good15:28
jdstrandI get "Theme not found: " "Foo"15:29
balloonsnik90, it did help me with the solution I ended up using, and I learned some tricks, so thank you much for all the help15:29
jdstrandI have a qmldir in Themes too, but don't know how to setup the import line15:29
jdstrand(I may not know a lot more than that :)15:29
zsombinik90: still around?15:31
nik90balloons: np15:32
nik90zsombi: yeah15:32
zsombinik90: seems EDS sends the change while the app is in background, which means that when the app is waken up, it won't get the signal anymore.15:33
zsombinik90: have you tried the same in desktop?15:33
nik90zsombi: no I haven't tried it on the desktop. Since the branch is a wip, I haven't tested it yet15:34
zsombinik90: yeah...15:34
zsombinik90: the situation is as said: we need a refresh to be invoked every time the app gets foreground.15:35
nik90does an app go to background when there is a snap notification shown?15:36
nik90if that's the case, then that should be simple enough to implement in the clock app15:36
t1mpnik90: do you want to host this one? http://summit.ubuntu.com/uos-1411/meeting/22338/ubuntu-touch-component-store/15:42
nik90t1mp: I created that session, so yes15:43
nik90t1mp: although I am contemplating a little about it15:43
nik90;)15:43
t1mpnik90: it is not a bad idea15:44
t1mpjust not something we can help a lot with because we have our hands full with the official UITK15:44
t1mpnik90: shall I wait with scheduling it until you finish contemplating? :)15:45
nik90t1mp: yeah that would be best. I am working on a prototype for it. If it goes well, then it might be worth having the session.15:45
t1mpok, cool15:46
=== chihchun_afk is now known as chihchun
jdstrandzsombi: istr you did the themes work for Ubuntu. how does an app developer override the/provide a theme?15:51
zsombijdstrand: it's pretty cumbersome, you can to it in the MainView in Components.onCompleted: Theme.name = "your.theme.name"15:52
jdstrandzsombi: right, but did you see backscroll? I can't seem to be able to find "you.theme.name" if I define my own theme15:53
jdstrandI really don't know what I'm doing, but basically, I took the SuruDark theme's files, modified them a bit and then put them in a directory in my tree, sprinkling in qmldirs15:54
zsombijdstrand: no, did not scroll back, I did not see my name there mentioned :)15:54
zsombijdstrand: so15:54
jdstrandheh, that's fine15:54
zsombijdstrand: in this case, your.theme.name should be stored relative to your app's folder15:54
t1mpzsombi: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1389759 :)15:55
ubot5Ubuntu bug 1389759 in Ubuntu UI Toolkit "Tutorial on theming" [Undecided,New]15:55
zsombijdstrand: like <appfolder>/your/theme/name15:55
jdstrandand what is 'name'?15:55
zsombit1mp: yes, I know...15:55
jdstranda directory with the MainViewStyle.qml  Palette.qml  parent_theme?15:55
zsombijdstrand: 'name' what? Theme.name? it's a proeprty, the name of the theme to be used15:55
t1mpzsombi: but now there is a bug so we can track ideas and progress :)15:55
zsombit1mp: no, sh...15:56
zsombi:D15:56
zsombit1mp: first we need subtheming and then we document this15:56
jdstrandzsombi: ie, should I have <appfolder>/your/theme/name/MainViewStyle.qml, <appfolder>/your/theme/name/Palette.qml and <appfolder>/your/theme/name/parent_theme?15:56
zsombijdstrand: no, you don't need all of them. you can do as SuruDark theme is done, so you need a :parent" file which tells what theme your are deriving from, then have only the styles you want to chane, or the Palette if that's the only thing you wanna change15:58
jdstrandzsombi: that is what I was trying to get at15:59
jdstrandzsombi: so, I create <appfolder>/your/theme/name/parent_theme15:59
jdstrandit has something like:15:59
jdstrandUbuntu.Components.Themes.Ambiance15:59
jdstrandthen if all I want to do is fiddle with colors, <appfolder>/your/theme/name/Palette.qml16:00
zsombijdstrand: ah, and forgot that the MainViewStyle will screw your theme selection :/16:00
jdstrandso I should omit MainViewStyle?16:00
zsombijdstrand: so you may want to rewrite that component completely :(16:00
zsombijdstrand: you need to declare a MainViewStyle of your own16:01
jdstrandzsombi: ok, so, yeah, I had: http://paste.ubuntu.com/8837588/16:01
zsombijdstrand: unfortunately teh default one will chose between Ambiance and SuruDark/SuruGradiemnt depending on teh backgroindCiolor/header/footerColors set16:02
zsombijdstrand: that's not enough :(16:02
jdstrandzsombi: what else is needed?16:02
jdstrandis this the bit with the Binding stuff?16:02
jdstrandeg, http://bazaar.launchpad.net/~savilerow-team/savilerow/trunk/view/head:/src/system/custom/xdg/data/themes/Ubuntu/Custom/MainViewStyle.qml16:03
zsombijdstrand: you can have whatever there, MainViewStyle has no public API (yet)16:03
aquariust1mp, ah, nice, am looking at the page header stuff now. Clearly the docs should have made that reference for me, as you note :)16:03
zsombijdstrand: so you can just have a Rectangle with your prefered color, or you can take teh color from MainView (styledItem.backgroundColor)16:03
jdstrandzsombi: oh, I think I responded to the wrong thing. is this sufficient to get me started with playing: http://paste.ubuntu.com/8837588/16:04
jdstrandzsombi: or do I need to do something more like http://bazaar.launchpad.net/~savilerow-team/savilerow/trunk/view/head:/src/system/custom/xdg/data/themes/Ubuntu/Custom/MainViewStyle.qml16:04
zsombijdstrand: it all depends what you want :) if you want a solid fill, no need for gradients or two items, you can have a simple Rectangle {z: -1; color: styledItem.backgroundColor }16:05
zsombijdstrand: and forgot anchors.fill: parent16:06
jdstrandzsombi: I'm not being clear. you said the default will only choose between two themes. I thought you were saying I needed to do something extra for it to recognize my theme16:06
zsombijdstrand: yes, you need to disable the logic that recognizes the two hardcoded themes (the stuff below line 53 in the MainViewStyle)16:07
zsombijdstrand: you can do that by writing your own MainViewStyle.qml in your app's theme16:07
=== ajalkane_ is now known as ajalkane
zsombijdstrand: no need to derive from Ambiance, just write your own stuff16:08
zsombijdstrand: so, your MainViewStyle.qml could be16:09
zsombiimport QtQuick 2.216:09
zsombiRectangle {16:09
zsombianchors.fill: parent16:09
zsombicolor: styledItem.backgroundColor16:09
zsombiz: -116:09
zsombi}16:09
zsombijdstrand: that's it16:09
zsombijdstrand: the thing is that if you derive from Ambiance's MainViewStyle, that will be driving you out from your theme16:10
jdstrandzsombi: is this what you are talking about: http://paste.ubuntu.com/8837747/16:13
jdstrandI think you are saying I need to remove a few things16:14
zsombijdstrand: uh, no, the theme.Foo/MainViewStyle.qml is wrong16:14
* jdstrand really has no idea what he is doing with themes :)16:14
jdstrandcan you tell?16:14
zsombijdstrand: just did ^^^^16:14
jdstrandno, 'can you tell' was a joke on me not knowing what I'm doing16:14
zsombijdstrand: :D16:15
jdstrandzsombi: what should theme/Foo/MainViewStyle.qml have for just a bare bones 'here is how you start with theming'?16:15
zsombi18:09 zsombi: jdstrand: so, your MainViewStyle.qml could be16:16
zsombi18:09 zsombi: import QtQuick 2.216:16
zsombi18:09 zsombi: Rectangle {16:16
zsombi18:09 zsombi: anchors.fill: parent16:16
zsombi18:09 zsombi: color: styledItem.backgroundColor16:16
zsombi18:09 zsombi: z: -116:16
zsombi18:09 zsombi: }16:16
zsombijdstrand: you keep deriving your MainViewStyle from Ambieance's MainViewStyle, but you don't have to16:16
=== daker__ is now known as daker
jdstrandzsombi: so, having the ambiance import in the MainViewStyle.qml means I am deriving from it?16:18
zsombijdstrand: more precisely you shouldn't derive from it at all, because if you do, the ancestor MainViewStyle will drive your theme out.16:18
zsombijdstrand: that alone doesn't mean16:18
zsombijdstrand: but the line 52 from http://paste.ubuntu.com/8837747/ does16:19
jdstrandok, so I've adjusted MainViewStyle.qml to remove the ambiance import and the binding. then I'm using in my main.qml:16:20
jdstrandimport "themes"16:20
jdstrandComponent.onCompleted: Theme.name = 'themes.Foo'16:20
jdstrandit seems to have found it16:20
zsombijdstrand: why don't you use the code I wrote for the MainViewStyle in the chat?16:21
jdstrandI thought I did16:21
jdstrandhttp://paste.ubuntu.com/8837846/16:21
zsombijdstrand: do you want to have the same coloring as the Ambiance has? (except the automatic theme switching)16:21
zsombijdstrand: :D16:22
zsombijdstrand: you're doing "recursive" typing16:22
zsombijdstrand: get rid of the topmost MainViewStyle {16:22
zsombijdstrand: just use the Rectangle {}16:22
jdstrandwhat I really want is to be able to use the SuruDark palette, and then override one component OptionSelectorStyle.qml16:23
jdstrandoh16:23
zsombijdstrand: ok, then we need a bit more complex style, lemme write U one16:23
jdstrandzsombi: sorry, use the suru dark palette, with me overriding a few things16:24
jdstrandand then override the occasional component's style16:24
jdstrandyeah, what I have now needs me to redefine a bunch of style qml files16:25
jdstrandfile:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ToolbarItems.qml:139:25: QML ActionItem: Warning: Style ToolbarButtonStyle.qml not found in theme themes.Foo16:25
jdstrandfile:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/OptionSelector.qml:220:9: QML StyledItem: Warning: Style OptionSelectorStyle.qml not found in theme themes.Foo16:26
* jdstrand thought that was what parent_theme was for...16:28
zsombijdstrand: http://paste.ubuntu.com/8837908/16:28
zsombijdstrand: huhh?16:29
zsombijdstrand: parent theme should be SuruDark if you want SuruDark colors as base16:29
jdstrandzsombi: sure16:30
jdstrandI can change that16:30
zsombijdstrand: but this failure tells me that the Theme engine doesn't find the style from your app...16:30
jdstrandand let me do that right now16:30
jdstrandah yes16:31
jdstrandI thought it was found, but it wasn't16:31
jdstrandQQmlComponent: Component is not ready"Theme not found: " "themes.Foo"16:31
jdstrandzsombi: do the qmldirs need to be there?16:31
zsombijdstrand: well, it has to be there only if you derive from it, which is not teh case in your app16:32
jdstrandok, so I moved them aside16:33
* zsombi checks the theming unit tests again16:33
jdstrandI'm using: Component.onCompleted: Theme.name = 'themes.Foo'16:33
jdstrandin MainView{}16:33
jdstranddo I need to do anything else with the imports?16:33
zsombijdstrand: make sure you import the 1.1 version in teh theme so you get all the palette values16:35
jdstrandzsombi: which theme, and where?16:35
zsombijdstrand: I mean wherever you derive16:35
zsombijdstrand: in your OptoipnSelectorStyle.qml16:36
zsombijdstrand: and btw, OptionSelector is deprecated, better use ItemSelector!16:36
zsombijdstrand: which will be rewritten once we get the ListItem out16:36
jdstrandright, but ItemSelector had a number of problems. I filed a bug, but that is separate16:36
zsombijdstrand: and in your Palette.qml as well, import Ubuntu.Components.Themes.SuruDark 1.116:37
zsombijdstrand: in that way your palette will be based on SuruDark, so you only have to change teh colors you want16:38
jdstrandzsombi: ok, I changed Palette.qml16:38
jdstrandzsombi: but I don't know what you mean by "I mean wherever you derive"16:38
jdstrandI don't know where I derive16:39
jdstrandparent_theme?16:39
jdstrandMainViewStyle.qml?16:39
jdstrandboth?16:39
zsombijdstrand: the Palette.qml derives from SuruDark's Palette :)16:39
jdstrandzsombi: yes, but you said 'as well' for Palette.qml16:39
jdstrandso I did that16:39
jdstrandbut I didn't do the 1st thing cause I don't know what you are talking about16:40
zsombijdstrand: you said you want to change the OptionSelectorStyle, so you need to derive from the paren't sone, right?16:40
jdstrandok, so in OptionSelectorStyle.qml, I would have that import16:40
jdstrandgot it16:41
jdstrandI am not doing that atm though16:41
zsombijdstrand: ah, ok :)16:41
jdstrandI'm just trying to get my main.qml to find the theme16:41
jdstrandand it isn't16:41
zsombijdstrand: ok, so you rtheme yet doesn't have anything else just parent_theme, MainViewStyle.qml and Palette.qml16:41
jdstrandthat is correct16:41
jdstrandyour MainViewStyle.qml, Palette.qml from SuruDark (with the added import you just gave) and parent_theme that (now) reference SuruDark16:42
jdstrandmain.qml has:16:42
jdstrandimport "themes"16:42
jdstrandMainView {16:42
jdstrand...16:42
jdstrandComponent.onCompleted: {16:43
jdstrand  Theme.name = 'themes.Foo'16:43
jdstrand}16:43
jdstrand...16:43
zsombijdstrand: you don't need to import "themes"16:43
* jdstrand tries without16:43
zsombijdstrand: it won't do much difference16:43
jdstrand"Theme not found: " "themes.Foo"16:43
zsombijdstrand: wth??!16:43
jdstrandlet me get a simple reproducer16:44
zsombijdstrand: seems we have a BIG bug then!16:44
zsombijdstrand: need to reboot, brb16:46
zsombiback16:48
=== chihchun is now known as chihchun_afk
jdstrandzsombi: http://paste.ubuntu.com/8838140/16:49
* jdstrand wonders if he needs an import in main.qml16:49
jdstrandfor SuruDark16:49
zsombijdstrand: import for your theme? there shouldn't be needed, the Theme engine loads the theme as files, and creates the style components by loading them as files16:52
zsombijdstrand: so the import "themes" shoudl not be needed16:52
jdstrandit was a wild guess. have I mentioned I don't know what I'm doing?16:53
jdstrand:)16:53
* jdstrand is trying to learn16:53
zsombijdstrand: LOL not surprized, we don't have any docs on this16:53
aquariust1mp, can I have multiple pageheadstates? or am I only allowed two, a default one and one other?16:53
zsombijdstrand: and we are trying to make it more robust16:53
jdstrandzsombi: could you reproduce with the paste I gave?16:54
zsombijdstrand: and we're introducing the subtheming as well16:54
zsombijdstrand: I'll try16:54
jdstrandoh, I left a 'import Ubuntu.Components.Themes.SuruDark 1.1' in ./themes/Foo/MainViewStyle.qml for testing. removing it doesn't help though16:55
jdstrandthere was probably an uneeded extra import in Palette.qml too. removing it didn't help either16:57
zsombijdstrand: looking16:58
zsombijdstrand: ok, so the theme did not change after all, checking the reason17:00
aquariusdo I have to do something special to make icons from the theme work? I'm using iconName: "back" in an action, and I get a black square, and output says "QML QQuickImage: Failed to get image from provider: image://theme/back". (This is running on the emulator.) /usr/share/icons/suru/actions/scalable/back.svg exists on teh device.17:00
jdstrandzsombi: thanks for the help and sorry for being a pain. as payback, once I get theme-test working, I'll give the tarball to davidcalle since I know he wants to do a theming tutorial17:01
zsombijdstrand: :D17:02
zsombijdstrand: thx17:02
zsombijdstrand: a tutorial which we will have to update once the subtheming comes17:02
jdstrandwell, hopefully that will only affect 15.04 frameworks, no?17:02
zsombijdstrand: but it is better to update something we have rather to not have anything17:03
jdstrandie, apps that use the 14.10 frameworks with this stuff would hopefully still work17:03
* jdstrand nods17:03
zsombijdstrand: yes, 15.04 is the plan for it17:03
zsombijdstrand: the current Theme engine will stay, but we will need something more neat and not a context property, becaus ethat is a pain...17:05
aquariusman, none of this pagehead stuff works :(17:05
zsombijdstrand: and all this will apply to 1.2 import of Ubuntu.Components17:05
jdstrandthat's cool17:05
jdstrandzsombi: ah, so you were able to confirm that the theme didn't apply. ok, good. I'm not crazy (though, less good for you)17:06
jdstrandwell, I'm not crazy cause of *that*17:06
zsombijdstrand: yes, the theme is not found, but I wonder why...17:06
aquariussetting head.actions as given in the example at http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.PageHeadConfiguration/ just doesn't seem to show any actions at all, as far as I can tell?17:06
dpmt1mp, zsombi, any of you have seen what aquarius is experiencing with black squares on the emulator? ^ I've seen it in the past, but I've not seen the black squares lately17:07
zsombijdstrand: because the "Theme not found" should come ony if teh parent theme is not found...17:07
zsombidpm: I can see black squares everywhere :D17:07
dpmyeah, I'm starting to see lights all around me now that I'm nearing my EOD :)17:08
nik90aquarius: did you set useDeprecatedToolbars to false in your mainView?17:09
nik90aquarius: I wrote that example and it works well in my testing17:10
aquariusnik90, yep.17:10
nik90do you get any runtime errors?17:10
zsombijdstrand: could you please file a bug for this theming problem?17:10
jdstrandsure17:10
aquariusnik90, http://paste.ubuntu.com/8838430/ is the whole source17:10
zsombijdstrand: thx!!!17:10
zsombijdstrand: just assign to me if you can, so I can follow it tomorrow!!!17:11
* nik90 runs the example17:12
aquariusnik90, it is possible that the pageheadstate is overriding the actions. but if I put two actions in the default pageheadstate, then it screws up when selecting them, afaict ;(17:13
nik90aquarius: https://imgur.com/M6zggaf17:14
aquariuswtf?17:15
mihirpopey: yay started merging MRs17:15
aquariusthat doesn't happen to me17:15
popeyOoh!17:15
nik90aquarius: I had to move the 2 actions you defined inside the default state17:15
popeymihir: awesome stuff! looking forward to trying out the new stuff! :D17:15
nik90aquarius: you need to specify which actions you want to show manually in each pageheadstate17:15
mihirpopey: yup , i have approved both kunal's MP , I am waiting him to review and approve my MPs and we are ready to push in store.17:16
nik90aquarius: what did you mean by " but if I put two actions in the default pageheadstate, then it screws up when selecting them, afaict ;("17:16
popeymihir: awesome.17:16
mihirpopey: then I guess we have to think , what needs to be done next, shall we wait for design inputs or just move ahead with the fixing and performance issues.17:16
aquariusnik90, right, so then, two things. 1) that example doesn't work if you have pageheadstates, but it doesn't say that :) More importantly, 2) I get both the "states" on top of one another when switching to them. :( Try tapping one of the icons, then go back, then tap the other. I get both the slider *and* the text box on top of one another17:17
jdstrandzsombi: what should I file it against, ubuntu-ui-toolkit?17:18
zsombijdstrand: yes17:18
zsombijdstrand: and I think I have the fix for it.. or at least I can see that the app's path is not added to the theme lookup list :/17:19
zsombijdstrand: so no wonder it doesn't find it17:19
aquariuswhat the hell? now I can't even deploy; "process:5138): WARNING **: database.vala:794: Manifest in /opt/click.ubuntu.com/org.kryogenix.fontbrowser/0.1/.click/info/org.kryogenix.fontbrowser.manifest is not a JSON object"17:20
aquariusI haven't touched the manifest :(17:20
nik90aquarius: hmm I get your bug where the pageheadstate contents mix with one other..that's a serious bug!17:20
zsombijdstrand: this engine is ancient enough we thought the app's themes will be stored in ~/.local/share17:20
aquariusnik90, it is. It makes pageheadstates unusable :(17:20
zsombijdstrand: it has not been updated for ~1 year now...17:21
nik90zsombi: can you see if you can run this code http://paste.ubuntu.com/8838577/ and reproduce the above bug. its quite serious17:21
zsombinik90: what bug?17:22
nik90basically run the app -> press the search icon -> press the back icon -> press the webbrowser icon17:22
nik90you will notice that the contents of each pageheadstate mix with one other17:22
nik90so the whole "state" concept breaks down17:22
nik90so you will see the slider and textfield on top of one other17:23
jdstrandzsombi: bug #138979217:23
ubot5bug 1389792 in ubuntu-ui-toolkit (Ubuntu) "theme not found when using a user-defined theme" [Undecided,New] https://launchpad.net/bugs/138979217:23
jdstrandzsombi: ah!17:23
jdstrandzsombi: I'm guessing this is definitely something for OTA17:24
jdstrandzsombi: should I bring it up to the PM team?17:24
zsombijdstrand: I'd say so... however apps are not really using this rigt now17:24
zsombijdstrand: you can, however if apps are not using it, it won't be so crucial17:25
jdstrandzsombi: no, they aren't, but this is about the developer story. developer's can't change the theming, and I think that is a problem (it's been hugely frustrating for me)17:25
zsombijdstrand: yes, I agree :(17:25
zsombijdstrand: ok, let's see what PMs are gonna say about it17:26
jdstrandpmcgowan: fyi, bug #1389792. I was thinking 'high' and 'ota-1'. what do you think?17:26
ubot5bug 1389792 in ubuntu-ui-toolkit (Ubuntu) "theme not found when using a user-defined theme" [Undecided,Confirmed] https://launchpad.net/bugs/138979217:26
zsombinik90: ah, that one! that bug (or a similar one) has been already repoprted to header, t1mp?17:28
nik90zsombi: well I remember ahayzen reporting it, but that only happened when switching between different pages. This bug happens within the same page itself.17:28
nik90so essentially we are limiting the developer to using only 2 pageheadstates to avoid this bug17:29
ahayzennik90, oh the searching bug?17:29
zsombinik90: doesn't matter, similar problem17:29
zsombijdstrand: one question: will the launcher set teh current dir to the path the app is launched?17:33
jdstrandzsombi: yes, a chdir to the install dir happens on launch. it is safe to use relative paths17:34
* zsombi wonders how can we get the path to the app's theme 17:34
zsombijdstrand: ok, good, so I don't have to do any magic, I can use QDir::currentPath() then, thx17:34
zsombijdstrand: ok, seems to be a one liner :)17:35
zsombijdstrand: or not :D17:35
zsombiI get loads of binding loops now...17:36
zsombianyways, will continue tomorrow17:36
jdstrandnote, I see binding loops when I just set the theme to SuruDark17:36
jdstrand(ie, not trying to do any of this user-defined theming)17:36
zsombit1mp: damn, the automatic style change in MainViewStyle is giving nore and more headache!17:43
t1mpzsombi: what's up?17:57
t1mpzsombi: I thought we decided to remove it17:58
akiva-thinkpaddpm, Just waiting to hear back from a few people; I will probably be able to host one or two. For the "Why Go?", I am trying to find another developer who is familiar with Go to host it.17:58
dpmakiva-thinkpad, cool. I'm asking a Go advocate too, I think it could be a good session17:59
t1mpB18:13:27 < aquarius> nik90, it is possible that the pageheadstate is overriding the actions. but if I put two actions in the default  pageheadstate, then it screws up when selecting them, afaict ;(17:59
t1mpaquarius: yes there is something wrong with the PageHeadState17:59
t1mpaquarius: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/134577518:00
ubot5Ubuntu bug 1345775 in Ubuntu UI Toolkit "Adding PropertyChanges to PageHeadState overwrites previous PropertyChanges" [High,Confirmed]18:00
akiva-thinkpaddpm, http://www.reddit.com/r/golang/comments/2ldlpl/is_anyone_would_be_interested_in/18:03
akiva-thinkpadSeems to be upvoting18:03
pmcgowanjdstrand, sounds good18:08
dpmthanks akiva-thinkpad18:15
dpmkyleN -> http://developer.ubuntu.com/2014/11/announcing-the-ubuntu-scopes-workshops/18:15
zsombit1mp: if we remove the auto-theming from MainViewStyle, we will break some apps...18:16
dpmah, sorry pinged you unnecessarily again about it, I meant to post the link here to let folks know about the workshops18:16
zsombigreyback_: ping18:19
greyback_zsombi: pong18:19
t1mpzsombi: now is the best time to do that18:20
zsombigreyback_: dude, I need a field in the desktop file18:20
zsombigreyback_: to set teh theme18:20
zsombigreyback_: of the app18:20
greyback_zsombi: how is the theme set? I.e. is it an env var, to be set at app run?18:20
zsombigreyback_: is it on you, or not? I mean is the app launcher on your hands?18:20
zsombigreyback_: yes18:21
t1mpzsombi: you can add a onBackgroundColorChanged: if (lightness(backgroundColor) < 0.5) print("For a dark background color, add $some_code to use the suru dark theme");18:21
greyback_zsombi: you need tedg18:21
t1mpzsombi: or we fix the apps first18:21
zsombigreyback_: thx18:21
greyback_zsombi: as upstart-app-launch will be performing the env var set18:21
zsombigreyback_: sure18:21
zsombit1mp: the problem is partly solved with...18:22
zsombit1mp: the best would be if teh app would be launched with the proper theme, i.e. if the app si launched with its own theme, then we're good.18:22
zsombit1mp but perhaps moving the theme to the StyledItem woudl also help...18:22
zsombit1mp: must do a small proto anyway18:23
t1mpzsombi: where is the theme now18:23
t1mp?18:23
t1mpI don't see it in MainView.qml18:23
zsombit1mp: MainViewStyle18:23
t1mpah yes, there..18:23
zsombit1mp: it was there for >1 year now :)18:23
t1mpyeah18:23
zsombi:P18:23
t1mpand that is weird.18:23
zsombiI know... I always said so :D18:23
t1mpzsombi: we can move it to the MainView instead, and *never* change the theme in a style..18:24
zsombianyways, I'll try to get a small workaround there18:24
zsombit1mp: yes, but that doesn't help18:24
t1mpactually like that we will have the desired default behavior and the binding loops should be gone18:24
zsombit1mp: as if the app wants a custom theme, what will we do?18:24
t1mphmpf18:25
t1mpthe MainView needs a theme property then18:25
t1mpI have to go now18:25
zsombit1mp: we better ask launcher to read a desktop file field and set it as UBUNTU_UI_TOOLKIT_THEMES_PATH, so teh app is launched with that18:25
t1mpzsombi: we need subtheming support :)18:25
zsombit1mp: yes18:25
t1mpzsombi: that won't be needed anymore when our StyledItems have a theme property18:26
zsombit1mp: and we can start having that slowly18:26
zsombiright18:26
t1mpwe can start with only the MainView18:26
t1mpand then extend it to the StyledItems18:26
* t1mp gotta run now18:26
t1mpttyl18:26
zsombit1mp: cheers18:27
* zsombi goes off 218:27
=== Saviq-codedive is now known as Saviq
=== karni is now known as karni-afk
=== karni-afk is now known as karni
brendandnik90, in your email were you referring to the ringer volume?22:39
nik90brendand: well both ringer volume and alarm volume22:44
nik90so I basically don't hear incoming calls or alarms clearly22:45
nik90since they are so low22:45
brendandnik90, right. so i just replied - basically you can't change the volume of those while media is playing22:45
nik90brendand: but I didn't have any media playing though22:45
brendandnik90, it's the same on other platforms, just they make it clearer by displaying a different icon on the volume overlay22:45
nik90brendand: either way I just want to increase the ringer/notification volume, how do I do that?22:46
brendandnik90, it works fine for me here apart from that22:47
brendandnik90, it could possibly get stuck on the media context somehow22:47
brendandnik90, have to restarted the device?22:47
nik90so If I was receiving an call and then I press the volume button, would that change the ringer volume?22:47
brendandnik90, it should22:48
nik90I have restarted the phone a couple of times due to unity8 crashing causing media hub to eat my battery22:48
nik90I have not had luck :/22:48
nik90I will try again later in the night and see If I get anywhere22:48
brendandnik90, i'm on -proposed so there's a small chance it was fixed in the meantime, but i don't think i saw any fixes matching that description coming through22:50
brendandnik90, definitely when the call is ringing and i change the volume, it changes the ringer volume, not the music volume22:50
brendandnik90, if it doesn't for you then something very curious is going on22:51
nik90true22:54
nik90brendand: strange thing was when I saw the call snap notification, press the volume buttons did not show the volume snap notification to indicate the volume is increasing22:55
nik90but yeah we definitely need a UI to change volume of different roles separately to make it more clear22:55
aquariusI suddenly can't deploy my app to the emulator: it says "database.vala:794: Manifest in /opt/click.ubuntu.com/org.kryogenix.fontbrowser/0.1/.click/info/org.kryogenix.fontbrowser.manifest is not a JSON object", and indeed that file on the device is blank. This worked and then just stopped working; what might I do to debug it?23:09
dakeraquarius: the manifest file is corrupted23:17
dakeraquarius: you need to uninstall the app23:17
aquariusdaker, hm. How? I went looking for how to uninstall the app and couldn't work out how!23:17
dakeraquarius: adb shell click unregister $PKGNAME --user=phablet23:18
aquariusI don't *know* the package name. And click says that I should use pkcon, and pkcon list-packages doesn't list my package :(23:19
aquariushence confusion :(23:20
dakeraquarius: adb shell click unregister org.kryogenix.fontbrowser --user=phablet23:20
aquariusah, ok :)23:20
dakerhope it will work :)23:20
aquariusdaker, trying it now :)23:26
aquariuswell, that problem is fixed23:35
aquariusnow it can't connect to the mir server23:35
aquariusI think this emulator is screwed23:35
aquariusI shall try the other one23:35
nik90aquarius: you can run apps/scopes on the emulator for 15-20 times before having to restart it.23:37
nik90aquarius: this is because when you quit an app, it doesn't release the mir egl surface. As such after 15 tries, it causes it to fail23:38
aquariusya, the newer emulator works23:38
aquariusalthough the dash *still* doesn't start23:38
aquariussigh23:38
aquariuscheers, daker; at least I know that now :)23:40
dakeraquarius: you can try : restart unity8-dash23:41
* aquarius tries that23:42
aquariusyay, that fixed it23:42
aquariusworried that it didn't start, though23:42
daker:D23:42
dakermaybe check the log23:42
aquariuswhich log? happy to check it23:43
daker~/.cache/upstart/unity8-dash.log23:43
aquariusah, I think that's just for this run of it, right?23:44
dakerhm ?23:45
aquariusthe dash wasn't running23:45
aquariusI restarted it23:45
aquariusand now it is running23:46
aquariusbut I don't know whether tha log file has details of both23:46
aquariusor whether restarting it blanks the log file23:46
dakeri don't think it blanks the log file23:47
dakeryou should see errors somewhere at the end of the file anyway23:47
aquariusyeah, I don't :(23:47
aquariusthere are a bunch of random errors about not being able to get images, but nothing that looks like a crash23:48
dakeraquarius: https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/136573323:48
ubot5Ubuntu bug 1365733 in unity8 (Ubuntu) "unity8-dash keeps trying to start but never does" [High,Incomplete]23:48
dakeror https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/136261923:50
ubot5Ubuntu bug 1362619 in unity8 (Ubuntu) "unity8-dash hangs in scopes backend" [High,Incomplete]23:50
nik90ahayzen: ping23:51
ahayzennik90, pong23:51
nik90ahayzen: hey :), you use the ColumnFlow component in the music app remix. Did you make any modifications to the code when you imported it?23:51
ahayzennik90, yeah lots...but we are looking to rewrite it as it doesn't quite meet our needs23:52
aquariusdaker, I've commented on that bug, cheers23:52
ahayzennik90, IIRC i put //custom next to most things i changed23:52
nik90ahayzen: ah ok..yeah when I used michael spencer's one, it resulted in https://imgur.com/esQtvMs where the order is a bit strange23:52
ahayzenwoah23:52
ahayzennik90, this is what ours looks like http://bazaar.launchpad.net/~music-app-dev/music-app/remix/view/head:/common/ColumnFlow.qml23:53
nik90ahayzen: pls do let me know when you think you got something which is generic and worth sharing.23:53
ahayzennik90, but as i said we need to rewrite it...as it loads *everything* rather than what is just inview23:53
ahayzennik90, which causes things to be slow23:54
nik90ah23:54

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