/srv/irclogs.ubuntu.com/2015/08/26/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
=== shuduo_afk is now known as shuduo
=== _salem is now known as salem_
bzoltan_didrocks: hi there,  may i have an LP/builder realted question?11:24
=== salem_ is now known as _salem
didrocksbzoltan_: sure11:26
bzoltan_didrocks:  so, i have made this pretty simple and pretty funny Ubuntu SDK IDE project -> http://bazaar.launchpad.net/~bzoltan/ubuntu-sdk-ide/trunk/view/head:/CMakeLists.txt11:28
bzoltan_didrocks:  it builds an archive independent QtCreator with our plugins ... it gives unified UX from LTS to Wily11:28
bzoltan_didrocks:  simple and easy ...11:28
bzoltan_didrocks:  _BUT_ the catch is that LP builders do not like wget'ing upstream source tarballs11:29
didrocksyeah, they are isolated from any network operation but the archive11:29
bzoltan_didrocks:  what would be the solution... other than adding a 500MB tar.gz to the project/source package?11:30
=== _salem is now known as salem_
didrocksto avoid people trying to include things that we don't control11:30
didrockswell, I guess adding the tar.gz is the only way11:30
didrocksask the libreoffice maintainer ;)11:30
bzoltan_didrocks:  can we bzr branch from LP projects?11:32
didrocksbzoltan_: no, for the same reason, you need to be able to reproduce the build11:33
didrocksand nothing will testify that you can bzr branch the same rev at any future point in time11:33
bzoltan_didrocks:  ehhh... that will make it difficult11:34
bzoltan_didrocks:  but thanks ... I try to figure out something11:34
didrocksgood luck :)11:34
=== salem_ is now known as _salem
=== jhodapp is now known as jhodapp|sick
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
mcphailCan I use GTK+ as a toolkit for development as per https://developer.gnome.org/gtk3/stable/gtk-mir.html ?16:17
aquariusoSoMoN or maybe daker, ping about touch gestures in the webapp-container16:41
aquariusgah, xchat crash! Haven't seen that in a while.16:56
dobeymcphail: sure, but you will probably have to ship all of gtk+ in your package to do so16:57
=== salem_ is now known as _salem
mcphaildobey: nevertheless, that is good news. I can handle C much better than C++17:00
mcphaildobey: and I have an archive of GTK+ apps I use for work17:01
dobeymcphail: there is no version of the ubuntu ui toolkit for gtk+ though, so whether your app will be useful on a touch screen will depend on how much effort you put into making that work17:02
mcphaildobey: ack17:02
dobeygtk+ itself will also probably need some changes to its build, to be useful, and not have filesystem paths compiled into the binary17:03
mcphaildobey: Having never built gtk+ from source, I imagine this will be an adventure :)17:04
=== mrjazzcat is now known as mrjazzcat-afk
davmor2ahayzen: hey dude is there a way on desktop to import an album to a playlist?17:59
ahayzendavmor2, just go to the album, press and hold a track, press select all in the header... then press add to playlist in the header18:00
davmor2ahayzen: awesome thanks I knew there was a way I just couldn't remember it :)18:01
ahayzenno problem :-)18:02
davmor2ahayzen: that's it all 13 cd's of the bbc radio adaptation of Lord of the rings now in a play list \o/18:06
ahayzen\o/18:07
davmor2ahayzen: I upgraded to wily earlier this week so now most of the apps work so I thought I trial them on the desktop as much as possible,  I'm still missing gpg signing for dekko, but I thought a nice LOTR marathon at work tomorrow would put the music player through it's paces :)18:14
ahayzen:-)18:15
ahayzenas long as mediascanner plays ball most things are ok18:15
davmor2ahayzen: and issue number 1 76 songs18:15
ahayzenwe have a few branches working on prototypes for convergent views18:16
davmor2ahayzen: nice, I'll also be happy to see jims mh landing for playlist support finally land, but rvr hit an issue testing that today :(18:19
ahayzenyeah i have a list of issues for Jim as well :-)18:19
davmor2ahayzen: yeah so songs doesn't work for spoken word ;)18:21
nik90ahayzen: \o, are you going to put out a translation-call to translate that 1 string before release?18:55
ahayzennik90, probably :-)19:10
mcphaildobey: compiling gtk+ really is like going down the rabbit hole...19:17
dobeymcphail: indeed19:21
mcphaildobey: might wait until wily is usable, as I pesume that will have 3.16 as default. Mir support without patches etc19:23
dobeymcphail: it won't be on the phone image, and it won't be built in a way that is suitable for shipping inside a click19:26
dobeymcphail: you'll still need to build it yourself and most of the deps19:26
mcphaildobey: yes, but it is the deps which are killing me. Right now I'm having to chase everything down to glib. At least _that_ will be on the default install19:28
dobeyyes19:30
dobeyand it will still kill you when the phone images are upgraded to 16.04 base19:30
mcphailmaybe19:31
dobeywell, i doubt gtk+ is going to get simpler to build :)19:32
mcphailha!19:32
mcphailmaybe some kind soul will create a click template with it all bundled together19:33
* mcphail suspects sturmflut2 could do it19:34
nik90ahayzen: could you guys do it soon..since we want to badly release clock app soon. Hopefully I am not rushing you guys ;)19:51
nik90hmm too many uses of "soon"19:51
ahayzen:-) i'll have a chat with Victor tonight to check he has got any extra things to land, he mentioned somethnig at the last meeting19:52
ahayzennik90, have you played with the AdaptivePageLayout thing yet?19:55
nik90ahayzen: no not yet..I am upgrading my development laptop to wily to get UC 1.319:56
nik90and all those new stuff19:56
nik90ahayzen: have you?19:56
* ahayzen just has a local branch of uitk19:56
ahayzenyup was playing about last night19:57
nik90ahayzen: I did do that once just to look at the new API properties it brings..but didnt have any sample code to try it out.19:57
ahayzennot sure we'll be able to use it for a right sidebar for music in its current form though :-/19:57
ahayzenTim put sample code in his blog post19:57
nik90well I heard t1mp say you cant mix pagestack and AdaptivePageLayout19:57
nik90so it will be tricky19:58
ahayzenhttps://developer.ubuntu.com/en/blog/2015/08/10/adaptive-page-layouts/19:58
ahayzenyeah and tabs :-)19:58
nik90sry I meant Tabs*19:58
ahayzen:-)19:58
nik90And you guys definitely need tabs19:58
ahayzenand it seems that the right side is linked to the left side.. so if you push something to the left the right is then blank19:58
ahayzenbut we want the right to always be the queue/now playing page19:58
ahayzen...unless ofc we change the design :-)19:59
nik90hmm yes20:03
ahayzenso we're back to our tricky situation :-/20:04
ahayzenlike we have a prototype branch that has the now playing/queue page as a sidebar, but we need a way of having two header action sections as at the moment we've had to disable header actions for the sidebar20:05
nik90hmm...do you have a screenshot of the design? Might help me process this more clearly20:06
ahayzennik90, https://docs.google.com/file/d/0B3XynHVKfrvMejVpQVhUd1J3ZWM/edit20:08
ahayzennik90, lp:~ahayzen/music-app/refactor-pull-now-playing-sidebar is 'close' to that :-) (in a slightly hacky way with no header actions :-/ )20:08
nik90ahayzen: Hmmm you guys are stuck between using Ubuntu.Layouts and AdaptivePageLayouts since both of them individually don't offer all the functionality you need.20:13
ahayzenyup the layouts i could never get to work perfectly anyway20:13
ahayzen^^ branch just uses Loaders with anchors hehe :-)20:13
nik90but I think Ubuntu.Layouts might be more suited though since the sidebar is a component that morphs between a sidebar and a bottom-bar20:14
nik90ofc. Ubuntu.Layouts stuff can be done using anchor changes and loaders..but all that code is nicely abstracted using ubuntu.layouts20:14
ahayzenwe need a component that can allow us to put two pagestacks next to each other.. with header actions for each ... and allowing tabs to get in the left as well20:14
nik90Why do you need two pagestacks next to each other?20:15
nik90I see the sidebar being a constant element shwoing the now-playing component and a play queue list.20:15
ahayzenor at least a pagestack on the left20:15
ahayzenand a page on the right that is not linked to the left20:15
nik90but does the page on the right change at any point?20:17
ahayzenprobably not20:17
ahayzenbut it needs its own set of header actions20:17
ahayzenwhich is what the layout doesn't give us IIRC20:17
ahayzenand the adaptivepagelayout gives us the header actions but the right side is not static from what i've seen20:18
nik90Yup and that's where you need to make a choice of either adaptivepagelayout of ubuntu.layout depending on which comes really close to the design document.20:19
ahayzenlike the tabs we could get rid of and use page header sections, as thats close to what the design looks like anyway20:19
nik90or talk to t1mp about this.20:19
nik90hhmm yes that's not tabs!20:20
nik90that's header sections20:20
nik90you're right20:20
ahayzenthe adaptivepagelayout is close but i'll need to put loads of code in to force the right side to always be the now playing20:20
ahayzenand not lose the scroll position or states etc20:20
nik90check if t1mp if that's worth the effort and also get his opinion.20:21
ahayzenyeah i think thats best :-)20:21
nik90its tricky indeed20:22
* ahoneybun just got the OTA20:36
ahoneybunmmm still have GPS issues20:37
ahoneybunClock can not find where I am20:37
ahoneybun*cannot20:37
sverzegnassiahayzen: if I understand correctly, it looks like the same problem I have with the powerpoint docs support in the lo-viewer :S20:38
nik90ahoneybun: does it just say "retrieving location" ?20:38
ahoneybunyea20:39
ahayzensverzegnassi, whats the problem you have? (the screenshots look awesome btw)20:39
ahoneybunnik90: ^20:39
nik90ahoneybun: hmm, check in system-settings app if you have AGPS (HERE support) available and ticked.20:41
sverzegnassiahayzen: the ListView with the list of slides which has to behave differently according its usage (as bottom edge page, or as sidebar)20:41
ahayzenahoneybun, do other apps get location? and try restarting the device, i sometimes find the location service gets confused somehow20:42
ahayzensverzegnassi, i guess you want the listview on the left and the presentation on the right in a converged or 'wideaspect' mode ?20:42
mcphailpopey: you tried the unity engine for linux yet? Apparently can export to webgl. Maybe an avenue for more Ubuntu games?20:43
ahoneybunahayzen: it did get a reboot for the update20:43
ahoneybunbut I'll do what nik90 said and then reboot20:43
ahayzencheck whats in /var/crash as well, bet there is a location one if it isn't what nik said :-)20:44
sverzegnassiahayzen: yep. For what I understood of your issue, you may want to use Ubuntu.Layouts for creating the sidebar, and have an Item which includes the queue list and the controls20:44
ahoneybunI don't have that in settings nik9020:44
ahayzenah20:44
ahoneybunmako20:45
sverzegnassithen the Item provides the section headers and the proper view (queue or controls or both)20:45
ahayzenahoneybun, so you won't have the AGPS support, which image channel are you on?20:45
ahoneybunstable20:45
ahoneybunahayzen: mako stable20:45
ahayzensverzegnassi, this basically https://docs.google.com/file/d/0B3XynHVKfrvMejVpQVhUd1J3ZWM/edit20:45
ahoneybunjust got to r2320:45
* ahayzen checks the list20:45
ahoneybunahayzen: https://drive.google.com/file/d/0B6zAAODZFwQ2QzhBOFpUcjZKZWM/view?usp=sharing20:46
ahayzensverzegnassi, the ubuntu.layouts don't allow us to have two header actions...and the adaptivepagelayout doesn't (from what i can see) allow us to have a fixed right side20:46
ahoneybunnothing in /var/crash btw ahayzen20:47
sverzegnassiahayzen: which scenario do you need the second header in? On phones?20:47
ahoneybunrpadovani: around?20:47
ahayzenahoneybun, which one are you on? ;-) http://pastebin.ubuntu.com/12202059/20:47
sverzegnassioh, now I saw the position of the sections... :S20:47
ahayzensverzegnassi, table/desktop for the right sidebar we need header actions as you do multiselect and stuff in the queue20:47
ahoneybunI think this: ubuntu-touch/stable/ubuntu20:48
ahoneybunyea cuz I don;t have the BQ stuff20:48
ahayzenthe ubuntu one doesn't have the HERE binaries ;-)20:48
ahoneybunyep20:48
ahoneybundamn20:48
ahayzentry ubuntu-touch/stable/bq-aquaris.en20:48
ahayzeni'm on ubuntu-touch/rc-proposed/bq-aquaris.en and it has HERE stuff20:48
ahoneybunahayzen: so the normal channel has no working GPS... ?20:50
ahayzenahoneybun, the ubuntu one is proprietary code free, from my understanding..it has working GPS just not aGPS20:50
ahayzen(which means it'll take many minutes to get a lock)20:51
ahoneybundamnit20:51
ahayzenuse the bq channel and it should work :-)20:51
ahoneybunUnity 8 is proprietary code so lies!20:51
ahoneybun:)20:52
ahayzen...but the unity8 code is here .. https://code.launchpad.net/unity8 ;-)20:52
ahoneybunI've heard some things are missing20:52
nik90?20:52
nik90Some are server side like scopes data and so on20:53
nik90but everything else is there in the link ahayzen mentioned20:53
sverzegnassiahayzen: never checked, but it _should_ be possible to add a second Header component, not related to MainView or PageStack, as we usually do for another UITK component... although I'm not completely sure if it's the best solution for code quality.20:53
ahoneybunanyway I'm not here to start a fight about that20:53
ahoneybunnot saying anything at all20:53
nik90;)20:54
ahayzensverzegnassi, yeah for us the best way would be to have a component that allowed us to have a second panel/section that has its own header component...doing that in pure QML could be fun though :-/20:54
* ahoneybun thinks about flashing that other channel20:54
ahayzensverzegnassi, think i'll poke the sdk guys when their about20:54
ahoneybunmy problem is the damn ubuntu-device-flash package is holding up android-tools-adb and -fastboot from getting updated20:55
ahoneybunahayzen: ubuntu-device-flash touch --channel=ubuntu-touch/stable/bq-aquaris.en  ?20:57
ahayzenmight wanna put the device as well but yeah i think its that20:57
ahoneybunit detects it no?20:57
ahayzeni'm about to reflash mine anyway so need to reremember the cmd :-)20:57
ahoneybunit has in the past20:57
ahayzenthink so :-)20:57
* ahayzen doesn't reflash that often20:57
ahoneybunI've moved my N4: Ubuntu -> LunaOS -> Sailfish -> Android -> Ubuntu lol20:58
ahayzenhaha mine went boot android -> enable developer mode -> ubuntu20:58
ahoneybunyay errors!20:59
ahoneybunoh snap20:59
ahoneybunSteam finished downloading a game :)20:59
ahoneybunahayzen: how do I see what channel I'm on?21:01
mcphailSteam and GOG are the main barriers to Ubuntu development21:01
ahayzenahoneybun, system-image-cli -i21:01
ahayzen(run on the device)21:01
ahoneybunI see the issue21:01
ahoneybunadb devices sees the device21:01
ahoneybunbut adb shell is having issues21:02
ahayzenah reboot into recovery then :-)21:02
ahoneybunoh lockscreen!21:02
ahayzen(to reflash)21:02
ahayzenor the lockscreen ;-)21:02
ahayzeni've had issues before where it complains about not being able to push things across, which were fixed by going into recovery..magic21:02
ahoneybunchannel: ubuntu-touch/stable/ubuntu21:03
ahoneybunwe have recovery?21:03
ahoneybunwhaaaattt21:03
ahayzenthe androidy one21:04
ahoneybunbutttt21:04
sverzegnassiahayzen, it seems to be already possible (at least using UITK 1.3): https://imgur.com/g3TbX1y && http://paste.ubuntu.com/12202130/21:04
ahayzensverzegnassi, ooo but they are ontop of each other, we need the sidebar one to be to the right (for music) ?21:05
sverzegnassiahayzen: I didn't set any position for the second header, so it's at (0, 0)... let's see if I can move it anywhere in the window21:06
ahayzensverzegnassi, and i assume you can't make them into the actual header bar? they would have to be below that ?21:06
ahayzensverzegnassi, what would happen if we replaced the head.contents with two of our own header things to contain the actions ? https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.PageHeadConfiguration/21:10
sverzegnassiahayzen: yes, I think the second header would stay inside the area used for the page content (below the first/main header). It behaves like any component (except for anchors.left: parent.left; anchors.right: parent.right, which is default)21:10
ahayzenhttps://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.PageHeadConfiguration/#contents-prop21:10
ahoneybunahayzen: recovery magic :)21:12
ahoneybunstrikes again21:12
ahayzenahoneybun, whats up ?21:12
sverzegnassiahayzen: PageHeadConfiguration and even PageHeadState should work as usual, since you can set the target head. Just tried to add a Rectangle as head.contents and it's shown21:12
ahoneybunahayzen: entered recovery, then tried again21:12
ahoneybunflashing21:12
ahayzensverzegnassi, but say we build a custom component that held the left and right actions, which we then set to the head.contents21:13
ahayzeni could see that potentially working21:13
ahayzenpretty hacky though21:13
sverzegnassiahayzen: do you talk about the anchoring of head.contents? It seems to work... yep, anyway it's hacky :/21:14
ahayzeni mean leave the head.actions blank so that the contents is full width .. and then build a compoennt to contain the left and right ones so that it appears like there are two sets of header actions21:15
sverzegnassiahayzen: supposed that the orange rect is your component, something like this? https://imgur.com/t4fBZnD21:18
ahayzenyeah but in the top tab bar thingy21:18
ahayzentime to prototype me thinks :-)21:19
* ahoneybun crys21:19
ahoneybun*cries21:19
ahayzenahoneybun, whats happened?21:20
ahoneybunShadow of Mordor sucks21:20
ahoneybunthe port to Linux does anyway21:20
ahoneybun:(21:20
ahayzenah..so your mako has not self combusted :-)21:20
sverzegnassiahayzen: not sure... unless you reimplement the UITK header, which is madness (and not always working properly - see Match The Color header height)21:22
ahayzensverzegnassi, i'm gonna attempt to do something :-) not sure what yet though aha21:22
ahoneybunahayzen: nothing happended really21:23
sverzegnassiahayzen: heh, I'm trying to create a custom header for Quick Memo, which behaves like the Android flexible header ( https://www.google.com/design/spec/patterns/scrolling-techniques.html ). With UITK 1.3 it's much easier (thanks to the ActionBar component), but I still need to find out how to hide the standard header :S21:27
ahayzensverzegnassi, if you set no title it hides the standard header IIRC21:28
ahayzen(to the page)21:28
ahayzeneg in the new weather-app we have no header on the main pages21:28
sverzegnassiahayzen: no with UITK 1.3. They added a setting to explicitely hide the header, but seems to be overwritten somewhere21:28
ahayzenah21:28
nik90sverzegnassi: you do header { visible: false; locked: true }21:32
t1mpnik90, ahayzen: You could have an AdaptivePageLayout on the left, and anchor your own Item to its right side21:32
nik90that should hide it21:32
ahayzent1mp, but i need header actions for the right side ?21:32
t1mpahayzen: I'm working now on a separate Header component that you can put in any Item :)21:33
nik90ahayzen: yeah so instead of item, you anchor a Page on the right side which will have its own header21:33
ahayzen(and the left side ;-) )21:33
ahayzenahh that'd be cool21:33
t1mpahayzen: after that we're considering moving the Header to be part of the Page, instead of the MainView.. then you can put a Page on the right-hand side that has a header21:33
ahayzenis there an eta for that component?21:33
nik90t1mp: can we expect these changes to be part of 1.3?21:34
ahayzen1.3 components maybe ? /me hides21:34
nik90since we're nearing release21:34
ahayzenotherwise i don't see how we can easily do the convergent stuff for music and potentially others21:34
sverzegnassinik90: \o/ thanks! I missed the locked:true21:37
t1mpnik90, ahayzen: yes, maybe21:39
ahayzenhehe :-)21:39
t1mpnik90, ahayzen: we extended 1.3 a bit. It was supposed to be frozen for 14.10, but since it is mainly used for mobile apps, we freeze it later, when the device images switch to wiley21:40
t1mpI don't know the exact date for that, but I think we have a bit more time21:40
ahayzent1mp, and that'll land with the framework bump and OTA7ish ?21:40
ahayzenor a pre-baked one will be in ota7?21:40
t1mpOTA7 is the next one? Then it won't be ready I think21:41
ahayzenyeah it is, and ok21:41
ahayzennik90, what happened with the mako specific swipe to delete action thingy?21:42
t1mpso the Header component that you could put inside any Item I'm working on now, so that will come in the next few weeks21:42
t1mpchanges to the Page/MainView won't come in 1.321:43
ahayzent1mp, ah but the header component might? that'll proobaby be enough to get us going21:43
nik90ahayzen: well it is being assigned to zsombi_ (looking at the bug report). You will have to follow that if it blocks music-app transition to the new list-items.21:43
t1mpand when those come, it would be the same API as now, except that you would also be able to use a Page outside of a MainView :)21:43
t1mpahayzen: yes, that's right :)21:43
ahayzent1mp, ok cool thanks21:43
t1mpnik90: which bug report?21:44
ahayzennik90, yeah have you the bug number i lost it21:44
* nik90 looks21:44
t1mpah, the swipe to delete?21:44
t1mpthe ListItem already has swipe to delete right?21:44
t1mpin 1.321:44
ahayzen..and i've marked it as blocking the MP at the moment as i know we'll get loads of bugs otherwise21:44
nik90https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/148600821:44
ubot5Ubuntu bug 1486008 in ubuntu-ui-toolkit (Ubuntu) "leading actions width is too small making it very difficult to press on Nexus 4 (mako)" [Medium,Confirmed]21:44
nik90t1mp, ahayzen ^^21:44
ahayzenthanks21:44
t1mpright, that's for zsombi_21:45
ahayzenthat won't be in OTA6 though :-/21:46
t1mpand jamie21:46
ahayzenwill have to hold that MP for another cycle21:46
t1mpahayzen, nik90: here is the Header API doc https://docs.google.com/document/d/1wUUKtPmRmwbUELC1BUB9l0VOAwS_zAPRSCqMopUxR1c/edit#heading=h.yv1xue68vkeu21:47
nik90t1mp: would you be adding an API to set the header background color as part of 1.3? The design spec for that looks too cool to wait any longer :D21:48
nik90https://docs.google.com/presentation/d/1wZ09SVZPwwJOccG4Rqu5JaHDuWw051oSKjf0uJHUyO8/edit#slide=id.g8d903971d_06421:48
ahayzent1mp, so PageHeader : Header { }  is what i'm interested in ?21:48
t1mpnik90: yes21:49
nik90Woohoo \o/21:49
t1mpnik90: I'm thinking to make it part of the HeaderStyle, but that part still needs to be worked out21:49
t1mpahayzen: yes. Header will be something that behaves like a Header (the hiding and showing), but its contents is empty (so you can put anything you want)21:50
ahayzenawesome21:50
t1mpahayzen: PageHeader will be a Header, filled with the stuff that we have now in the header. So that's basically on the left a back button or navigation overflow, then a title, and on the right an ActionBar. Plus optionally Sections at the bottom.21:50
t1mpfeel free to add questions/suggestions to the doc. The more we discuss it now, the better the API will be in the end :)21:51
ahayzent1mp, did you say further down the line the AdaptivePageLayout will work with tabs as well ?21:52
* ahayzen is unsure if the music-app will just move to using page header sections or use tabs21:52
t1mpahayzen: yes, something like that. But I still have to see all the designs, because maybe it needs to be much more flexible than the Tabs currently are21:52
nik90ah so PageHeadState now changes to HeaderState21:52
t1mpahayzen: so maybe the app developers need to put icons in there, or section headers, or complete custom Items inside the panel21:53
t1mpnik90: oh you are too far down in the 'Archive' with previous suggestions21:53
nik90t1mp: I didnt see PageHeadState in the new proposed API, so I scrolled down much further.21:53
sverzegnassit1mp: I read in the doc that devs will be able to override the height of an Header. Does that mean that we'll be able to do something similar to: https://www.google.com/design/spec/patterns/scrolling-techniques.html ?21:54
t1mpnik90: the PageHeadState is just a convenience component so that you don't have to define the properties for actions, contents etc in your app. That won't change21:56
t1mpsverzegnassi: what do you mean exactly? There is a lot on that page :)21:56
t1mpsverzegnassi: you will be able to put a Header with custom contents and custom background in your app, so I think you can reproduce most of what is on the page (I only quickly browsed the page, not read it in detail now)21:57
sverzegnassit1mp: the scrollable header: e.g. as a page is pushed into the stack, you have a bigger header, then when you scroll a flickable, the header will take less space and go into a "compact" mode21:57
sverzegnassi(don't know if I explained it well)21:58
t1mpsverzegnassi: hmm, interesting. What I see under 'flexible space with image' looks cool. I didn't think of that before but I think you could reproduce that21:58
t1mpsverzegnassi: Header { Item { anchors.bottom: parent.bottom; height: parent.height + parent.y; Image { visible: parent.height > 100 } } }22:00
nik90t1mp, sverzegnassi: I suppose since Header is derived from StyledItem, the developer can manually specify the height and visibility of it. And manipulate the height property of the header directly?22:00
t1mpsverzegnassi: I guess you could do something like that (probably better, but that's not very readable in irc)22:00
sverzegnassit1mp: ok, thanks! I'll surely try, in order to see if I can deprecate the custom header I'm writing22:00
nik90t1mp: do we need a Item{} inside Header{} to change its height? Can't we do it directly?22:00
t1mpah, yes you would need 'stages' in the header, because currently when you release it, it either fully hides or shows depending on when you stop scrolling22:01
t1mpsverzegnassi: so it is a bit more complex then I thought, to avoid the auto-show/hide.22:01
ahayzent1mp, so if we're adding these headers to Items or Pages or whatever, where will the header actions appear? just inset into the component? If so how would you get them into the tab bar in my case ?22:02
t1mpnik90: you can do it directly, but in my example I put the Item inside so that the Item changes height when you scroll the header. Like in the "Flexible space with image" on https://www.google.com/design/spec/patterns/scrolling-techniques.html#scrolling-techniques-scrolling22:02
t1mpnik90: you can set the height of the Header, but the height normally stays fixed to the height that you set. When you scroll your flickable, the header moves up and down without changing its height22:03
nik90ah okay22:03
t1mpahayzen: can you explain that a bit more?22:04
t1mpahayzen: so, the Header will have no contents. It is for you to fill.22:04
t1mpahayzen: the PageHeader will have the regular actions on the right side. I will just put an ActionBar in there22:04
t1mpahayzen: on the left side I also plan to add an ActionBar, but with numberOfSlots = 122:04
t1mpahayzen: so you can set leadingActionBar.actions22:05
ahayzent1mp, but where will the header be? say i have a random Rectangle inside something...does that mean the header contents will appear inside that rectangle? or up on the tab bar ?22:05
ahayzenah so i would set numberOfSlots to 2 for my case and then map the left side to the first slot and the right side to the second slot ?22:06
t1mpahayzen: so the Header will by default attach to the top of its parent.22:06
t1mpahayzen: so if you have Item { Rectangle { Header { } } }, it is inside the Rectangle22:06
ahayzenok22:06
t1mpahayzen: if you want it aligned with the Item, you do Item { Header { }; Rectangle { } }22:06
t1mpahayzen: there will be two ActionBars: One on the left for the back-action or navigation/tabs overflow panel, and the other one on the right side with the page actions22:07
t1mpahayzen: currently the one on the left gets 1 slot, the one on the right 3 slots (but the one on the right will become adaptive to directly show more actions when there is more space)22:08
ahayzenah i see, so i would put the header actions of the right sidebar inside/top of that and not try and put them into the main tab/title area?22:08
* ahayzen thinks the designs are probably lagging a bit22:09
t1mpI don't think I understand what you are asking22:10
t1mpso,22:10
t1mpon the left side in the header there is one slot. It can have a back button, or an overflow button that opens the tabs panel22:11
t1mpthen, in the middle, there is the title22:11
nik90I think I just got what ahayzen was saying22:11
t1mpand on the right side there are multiple slots for actions22:11
nik90t1mp: take a look at this https://docs.google.com/file/d/0B3XynHVKfrvMejVpQVhUd1J3ZWM/edit22:11
ahayzeni've probably not explained it well and confused Tim :-)22:12
nik90ahayzen wants to possibly show actions in the right side when the user long-presses the play-queue to multiselect sutff22:12
nik90but since the sidebar does not have a header component, he intends/wants to use the header component of the main page22:12
nik90(hope I understood him right ;)22:12
ahayzenyup sortof22:12
ahayzeni wanted to then be able to have the header actions from the left side also in the top bar22:13
ahayzenbut on the left side, like the AdaptivePageLayout does22:13
t1mpnik90: so in those designs I would say you add a main Header component that just sets the title, and has trailingActionBar.actions = [Action { iconName: "search" }]22:14
t1mperr22:14
ahayzenits effectively https://developer.ubuntu.com/static/devportal_uploaded/5f519c74-5718-474e-9196-eea21644bd4a-uploads/zinnia/100gu-right.png22:14
ahayzeni want the root page to be the main tabs/stack part with its own header actions22:14
t1mptrailingActions.actions: selectionMode ? [ selectAllAction, selectNoneAction, deleteAction ] : [ searchAction ]22:14
ahayzenand the second column to always be the now playing/queue page with its own header actions22:14
t1mpsomething like that^?22:14
ahayzent1mp, but what happens if you do multiselect mode on the left *and* the right22:15
ahayzenthen its confusing to the user which listview the actions are performing on22:15
t1mpohh22:15
t1mpright22:15
ahayzenso i wanted to be able to have multiple sets22:15
ahayzenas the AdaptivePageLayout does22:15
t1mpso you can have multiselect in each of the columns, but you have only one header?22:15
t1mpthat is indeed confusing22:15
t1mpmaybe you should have two (sub)headers?22:15
t1mplike in https://developer.ubuntu.com/static/devportal_uploaded/5f519c74-5718-474e-9196-eea21644bd4a-uploads/zinnia/100gu-right.png22:16
ahayzenyeah i mean have two headers22:16
nik90that would be very confusing to the user having two multiselected states22:16
ahayzenexactly like that22:16
t1mpthere each (sub)header has its own set of actions to show on the right side22:16
ahayzenbut the problem i have with the adaptivepagelayout is the right side (second column) changes when you push things to the left sides stack22:16
ahayzeni need the right sides page to always be the same whatever you have done to the left side22:17
t1mpyes, I'm thinking that too22:18
t1mpso what's on the right is not inside a AdaptivePageLayout22:18
t1mpjust your own Item, with a PageHeader inside. So it will have its own actions22:18
ahayzenok and that should work?22:18
t1mpyes, but I still need to finish the PageHeader component :)22:19
ahayzenhehe22:19
t1mpand I don't know what will happen when you resize the window. When you switch to a phone layout will you show what was in the right column or the left column?22:19
ahayzenwe hide the right side and show a toolbar thing which allows you to push the now playing to the left sides stack22:20
t1mpfor the AdaptivePageLayout we automated that for the basic case where the root page is always on the left and you navigate deeper by opening new pages on the right22:20
ahayzenso basically we would just hide that Item and make the adaptivepagelayout full width22:20
t1mpyeah, that's possible22:21
ahayzenyeah i could see us having 3 sections on really big displays .. like Album | Songs | Now playing/queue22:21
ahayzenawesome sounds like we've found a solution :-)22:21
t1mpwe had a proposed version of the API where instead of AdaptivePageLayout was instead an AdaptivePageView that replaces the MainView, but we changed it to AdaptivePageLayout that you have to anchor yourself (inside the MainView) to allow for these cases :)22:21
ahayzen:-)22:22
nik90smart22:22
t1mpnik90: yeah, I already had the AdaptivePageView fully implemented when we decided to change it ;)22:22
nik90woops ;)22:24
ahayzent1mp, is there a WIP branch for the PageHeader stuff that we can develop against or is it not at that stage yet ?22:24
t1mpahayzen: no, it is still too early22:26
ahayzencool22:26
t1mpahayzen: the Header branch is here https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/header3 but that Header will be empty22:26
ahayzenhah :-)22:27
t1mpI'll get back to that as soon as I finish with this bug https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/148892222:27
ubot5Ubuntu bug 1488922 in ubuntu-ui-toolkit (Ubuntu) "AdaptivePageLayout fails to show custom header contents" [High,Confirmed]22:27
t1mpwow, I didn't realize it is so late. I better go to sleep :)22:28
ahayzent1mp, thanks for your advice :-)22:28
t1mpthanks for the feedback :) it is good to think of the use cases. I'll let you know when I have a branch for PageHeader so you can try it22:29
ahayzenawesome thanks22:30
* t1mp off. Good night all.22:31
ahayzennight o/22:32
ahoneybunahayzen:22:38
ahayzenahoneybun,22:39
ahoneybunI'm 65 downloads away from 300022:40
ahoneybun\o/22:40
ahoneybunholy crap22:40
ahayzenjezzz \o/ well done22:40
ahoneybunI know it's crazy22:40
* ahoneybun really needs to do something lol22:41
ahoneybunwe should have a app with Unity 8 docs22:41
ahayzenis there an app for the docs themselves? https://developer.ubuntu.com/api/22:42
ahayzenor are you just expected to use the webbrowser22:42
ahoneybunno clue22:42
zsombi_ahayzen: nik90: just to make it clear, we are not going to freeze 1.3 in 15.10 release22:42
zsombi_ahayzen: nik90: this is on your concern whether certain components will land in 1.3 or not22:43
ahayzenzsombi_, will it freeze after a framework is bumped ? or will there be multiple frameworks to bind to ?22:43
zsombi_ahayzen: the framework bump will not freeze, but introduce it officially for you. It will be a development framework22:43
nik90ah okay, it will be ubuntu-sdk-15.10-dev1 and  so on..22:44
ahayzenok so it could potentially break people who do not update ? or will there be multiple development frameworks to prevent that ?22:44
zsombi_ahayzen: the API is more or less stable, components are stable as always (as stable they can be in certain situations ;P)22:44
zsombi_ahayzen: most likely each framework iteration will contain more and more, but shoudl never break22:45
ahayzenbut eg if a new component is added, then the framework would need to be bumped otherwise folks could end up with an app trying to use a component that doesn't exist22:45
ahayzencool22:45
ahoneybunahayzen: all those downloads and like 5 reviews....22:45
zsombi_ahayzen: yes, it will be22:45
ahayzenzsombi_, awesome thanks22:45
zsombi_ahayzen: ;) yw22:45
nik90zsombi_: out of curiosity, when can we expect 1.3 to become a stable API?22:45
nik90just wondering when to make that transition to 1.3 for the clock-app.22:46
zsombi_nik90: ufn we are keeping it, but we will announce it like 1-2 months earlier22:46
nik90I suppose if I use the development framework, I will be shielded from any breakage (if any), but just wondering if it is wise to use a development API.22:46
ahayzenahoneybun, hopefully that is because people like your app and have no issues with it :-) (look at the music-app reviews lol seems to flip from 1/2 to 4/5 stars as media-hub/mediascanner broke and were fixed or we broke and were fixed aha)22:46
ahoneybunperhaps22:47
zsombi_nik90: I also hope that at some pount the frameworks will work as they should, so you cannot install a 15.10-dev FW targetted app on 15.04 :)22:47
nik90zsombi_: true, but we are at a unique point in time where phone will not switch to 15.10 for another year22:47
nik90so it will be an exception where we ship development frameworks in 15.04 still.22:48
ahayzenzsombi_, so these development frameworks will they be on stable phones, eg OTA7 ? or only -proposed ?22:48
zsombi_ahayzen: the stable OTA-x releases are always containing a stable shapshot of 1.3. They were there since day0 of OTA... :)22:49
zsombi_nik90: true, so once we see that we've released everything we planned to 1.3 and convergence, we will call it a release and go to the next version22:51
nik90ack. makes sense22:51
zsombi_nik90: I cannot say when, but might be that we are going to open 1.4 earlier, or perhaps we will keep 1.3 as long as we need and plan for 2.0, to introduce some more major changes22:51
nik90ok22:52
ahayzencool thanks22:52
nik90zsombi_: btw, I noticed mtp's comments about not using exclusive grouping properties on checkboxes. Instead radio buttons are the way to go.22:53
* nik90 hopes 2.0 brings radio buttons22:53
zsombi_ahayzen: nik90: so, fo rnow, what you can see is a slightly speeded up MainView, some shots of the new header, Sections, ActionBar, AdaptivePageLayout, which is the most powerful animal in the garden nowadays after teh Condiltional layouts ;)22:53
ahayzen:-)22:54
zsombi_nik90: I did not see that yet, but even if the radio button will be the choice, an ExclusiveGroup component will be needed to control thoise :)22:54
ahayzentoo much fun stuff to play with :-)22:54
nik90zsombi_: Ubuntu.Layouts is THE shit! More powerful than adaptivepagelayouts ;)22:54
zsombi_nik90: and after all a difference between a checkbox and a radio button is the style ;)22:55
nik90zsombi_: indeed, they will be different only visually and yet affect the user's perspective. I guess that doesn't change things code-wise for you in terms of implementation.22:55
zsombi_nik90: indeed, but AdaptivePageLayotu is specially made to support columns based page viewing, not rearranging the complete UI :)22:55
zsombi_nik90: so it's kind of a subset of Ubuntu.Layouts22:56
nik90true22:56
zsombi_it serves a special purpose, whereas Ubuntu.Layouts is a generic driver22:57
zsombi_nik90: ahayzen: and hey, we will have a new palette!!! finally some proper semantic color values there! normal, focused, hovered and disabled color values!!!22:58
ahayzen\o/22:58
zsombi_and menus!22:59
nik90zsombi_: we have a palette already don't we like theme.normal.selected and so on?23:00
nik90menus woohoo!23:00
nik90bring on that convergence23:00
nik90zsombi_: any cool design screenshots to share about how menus look with ubuntu-touch styling?23:00
zsombi_nik90: yes, but the coloring is not enough for what we need, so we need two more value sets, to properly handle the hovered and disabled states23:01
nik90ah yes23:01
zsombi_nik90: sometimes we use lighter, or darker coloring for these purposes, however that is not configurable enough... now it will be23:01
zsombi_nik90: so the Palette in 1.3 may look slightly different from 1.2 and below23:02
zsombi_nik90: we don't have yet screenshots, but we will blog about them as soon as we get them ;)23:02
nik90wow apps updating from 1.2 to 1.3 or even 1.1 to 1.3 (like Unity8) are going to get more customizable and powerful in how they want their user-experience to be.23:02
nik90I'm excited!!23:03
ahayzensame :-)23:03
zsombi_nik90: but first, OTA7 will have the additional and complete AdaptivePageLayout API23:03
nik90I am curious as to which core-app will use it first.23:03
ahayzenhaha the race is on! lol23:03
zsombi_meaning column configurations for infinite amount cof columns, conditional activation of those and column resizing23:04
zsombi_HAHA, I live it to you guys :D23:04
nik90:D23:04
ahayzenthe race is more, who can get their solution past QA first :-)23:05
zsombi_nik90: ahayzen: so, once you have that, we are curious to see your comments and needs from that component23:05
sverzegnassiyay! got the flexible space header working! \o/23:06
zsombi_and now, if you guys don't mind, I'll turn meself off, and go to sleep a bit :)23:06
ahayzennight o/ and thanks for the info23:07
zsombi_thx and yw, and as said, we will blog about these, one by one as they become alive23:07
nik90zsombi_: gnite /o23:08

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