=== _salem is now known as salem_ === salem_ is now known as _salem === _salem is now known as salem_ === chihchun_afk is now known as chihchun === rpadovani_ is now known as rpadovani === chihchun is now known as chihchun_afk === davmor2_ is now known as davmor2 === diddledan__ is now known as diddledan === chihchun_afk is now known as chihchun === salem_ is now known as _salem === _salem is now known as salem_ [14:05] kalikiana: do you agree with me adding foregroundColor and backgroundColor to ActionBarStyle? https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1597774 [14:05] Launchpad bug 1597774 in ubuntu-ui-toolkit (Ubuntu) "Give ActionBar a configurable foreground and background color in the style" [Undecided,New] [14:15] t1mp: Will the color be used for the overflow menu as well? Or will there be a separate style for that? [14:16] It makes sense to me, but it'd be good to consider the long term plans [14:19] kalikiana: yes, could be used for the overflow menu [14:19] wait, I forward you an e-mail with a video [14:20] kalikiana: I mailed you a video for the toolbar design [14:20] it has icon scrolling, no toolbar. That's what I'm working on now. [14:20] and if it works well, maybe this pattern will be used in other places also.. so there may be a small chance that it'll replace the overflow panel. [14:22] kalikiana: I could implement it for the actions that are directly in the actionbar now, and later extend it to the overflow [14:31] t1mp: Right, in that use case there's no overflow. My thought was more precsely that the ActionBarStyle applies to both kinds of action bar, and one of them has overflow. And for example once we have an Action that can be active/selected/checked it could use colors in either the bar or the overflow. In other words, do we re-use the same style, or do we duplicate the properties? [14:34] Since the overflow is a part of another component it's not obvious how you'd access its StyleHints. [14:49] kalikiana: right. It is in the OverflowPanel. We should make that configurable too somehow [14:51] kalikiana: the overflow panel might have (slightly) different colors than the ActionBar itself [14:51] so if we want properties to configure that, we'd need to add more properties in addition to the foregroundColor and backgroundColor [14:52] kalikiana: but perhaps just to the style in the theme, not in Styles since the ScrollingActionBarStyle has no overflow [14:52] and if the overflow would disappear in the future, we have those unused properties there [14:53] kalikiana: we also have defaultNumberOfSlots, overflowIconName, overflowIconSource and overflowText which would be useless if we drop the overflow panel. [14:53] femma: hello :) [14:53] femma: do you have an opinion on that^? [14:53] kalikiana, femma: I propose to add the foregroundColor and backgroundColor to the ActionBarStyle now, but not to add properties for configuring the overflow.. yet. [14:54] kalikiana: or do you know of a request for that from app developers? [15:19] t1mp: It's needed for selectable actions, and also section headers, in the overflow [15:20] That's not new, I'm just bringing it into this context since you're working on the style. [15:21] Right now that's not going to be dropped, rather the opposite, we need apps to use it once it can support all use cases. [15:24] t1mp: That's bug 1594281 btw [15:24] bug 1594281 in ubuntu-ui-toolkit (Ubuntu) "Can't override overflow menu delegate in ActionBar" [High,Confirmed] https://launchpad.net/bugs/1594281 [15:25] oh, right. [15:26] kalikiana: I'm working on a separate style ScrollingActionBarStyle mainly. [15:26] kalikiana: I think we should wait here to see what design says [15:26] which features the overflow should have [15:26] maybe we'll need to expose the full OverflowPanel for the ActionBar, and probably introduce an OverflowPanelStyle too. [15:27] I'm not sure how we can expose that though as part of the style. If we could have something like StyleHints { panel.foregroundColor: "green" } etc that would be cool. [15:28] hmz.. but ActionBar won't always have a style with an panel. [15:28] only the current default ActionBarStyle has it, but the scrolling one won't. [15:28] kalikiana: perhaps we need a separate component for the scrolling ActionBar? [15:28] the thing that we call 'toolbar'... [15:29] but it has the same API, just a different UX/style. [15:29] well we have that with the CheckBox and Switch too. So I guess it is ok to have two components. [15:30] t1mp: s/won't/doesn't right now/ considering it almost looks like tabs now, which could easily grow a button showing all items ;-) [15:30] kalikiana: what do you think of an ActionBar and Toolbar component? [15:31] t1mp: I don't agree right now that they are distinct components. [15:31] kalikiana: you imagine an ActionBar that has scrolling AND a panel? [15:31] kalikiana: CheckBox and Switch are different components too [15:32] kalikiana: the styles will need different API. Specifically, the ActionBarStyle needs properties for configuring the panel, and the toolbar does not. [15:32] t1mp: Well, CheckBox and Switch are identical. The styles are different. [15:32] Pretty much the same as we have with the action bars [15:33] kalikiana: yes, that's what I meant. But it means that we will have a Toolbar component [15:33] even though the implementation will be Toolbar: ActionBar { styleName: "ToolbarStyle" } [15:33] t1mp: As I said the "toolbar" almost looks like notebook tabs and could theoretically have a menu button as well. I don't see why that would never happen. [15:34] it is a scrolling list of action items [15:34] So? [15:34] If you have 100 maybe you don't want to scroll. [15:35] if it'll have an overflow then we should have just one ActionBar component that can have both scrolling and an overflow [15:35] kalikiana: so, I'll propose for now, [15:35] kalikiana: add foregroundColor and backgroundColor to Styles/ActionBarStyle. Those properties will be useful in any case, [15:36] kalikiana: implement the toolbar only as a separate style in the theme (ScrollingActionBarStyle). No changes (yet) in ActionBar API or in Styles/ActionBarStyle. [15:36] kalikiana: then we and the designers can use the toolbar for a while and see how well it goes, and they can then see if we will unify the ActionBar and toolbar, or they will diverge more. [15:37] perhaps indeed maybe we'll end up with an ActionBar that can have overflow and scrolling at the same time. [15:38] so that means if apps want to use the toolbar, they'll have to put ActionBar { styleName: "ScrollingActionBarStyle" }. [15:38] kalikiana: hmm.. seems like we need 'labs' for the theme ;) [15:40] t1mp: Hmmm what would happen if we removed the style? Would it fallback to the default ActionBarStyle? [15:40] In that case it wouldn't be so bad [15:40] But I don't know off head what'll happen [15:41] if we just remove it it will break I think. But we can easily create ScrollingActionBarStyle that basically links to ActionBarStyle if needed [15:41] kalikiana: right, they have the same functionality, but different UX. [15:41] kalikiana: if the scrolling actionbar becomes super popular it would even be possible to make that the default style and then all headers will have the scrolling [15:42] t1mp: Sure. My thought was, if we consider this an experimental UX design, and it's not in the public Styles API, and it ends up being dropped, falling back to a regular ActionBar wouldn't break apps. [15:43] If it's a Toolbar component aliasing ActionBar it's about the same pain as a style alias. [15:43] Assuming we wind up maintaining it anyway [15:44] t1mp: So... if we only have a different style, we still end up making it public API, which means it makes no difference in the end. [15:45] why we make it a different API? [15:46] t1mp: Public, not different. [15:46] only the styles in Styles/ are stable. We can change the APIs in Themes that are not in Styles [15:46] anyway the API can be the same, except for the styleName [15:46] t1mp: You said it yourself, we'd end up with an alias for the style if we dropped it. [15:47] yes [15:47] t1mp: The only alternative would be, if it was possible to give a styleName that can fallback to the default if it's missing. [15:48] for the app developer the result would be the same as when we create an alias style [15:48] Yes [15:50] t1mp: I'd say let's go Switch style, it's easier for app devs. [15:59] with Switch style you mean introduce a Toolbar component? [16:00] Yes [16:00] Same component, different style [16:00] you mean a new component that inherits from the other component. [16:01] for me, same component different style is ActionBar { styleName: "ScrollingActionBarStyle" } while new component is Toolbar { } [16:01] note that if we have a new component we also need to introduce a new ComponentStyle to configure the colors === chihchun is now known as chihchun_afk [16:03] kalikiana: I could add the new Toolbar component to Ubuntu.Components.Labs [16:04] t1mp: That would be nobody can use it right now. Is that what you want? [16:05] they could use it from labs [16:05] No released app can use Labs. [16:06] then how do we properly test new components? [16:08] With test cases... [16:08] If you want to release an app regardless of API changes you must bundle. [16:10] t1mp: Labs is defined as, can and will break at any time, ergo you can't use it in the stable release of an app. [16:11] actually, [16:11] we have the Toolbar component [16:12] which combines two ActionBars (one for the delete button, and the other one with multiple actions on the right side) [16:12] hmm [16:12] we can just keep that Toolbar, and set the style of the ActionBar that is on the right. [16:12] so the app developer does not even have to set the styleName [16:13] that's basically the Toolbar that we discussed here, but a slightly less thin layer over the ActionBar because it contains the ActionBar, not inherits from it. [16:13] it mimics the API that we have for the PageHeader. [16:14] sorry I forgot about this Toolbar component. [16:14] so I don't need to change any API. Just add the foregroundColor and backgroundColor to the ActionBarStyle. [16:14] and when you're using Toolbar, you will automatically get the scrolling instead of overflow. [16:20] ahayzen: I have pictures that I could summit to that contest! [16:21] kalikiana: so I can introduce the ScrollingActionBarStyle (same API as ActionBarStyle), and use that by default in the Toolbar that already exists. [16:21] ahoneybun, \o/ [16:21] I took them on the OPO so legally I can summit them [16:21] I have rights on them [16:21] right? [16:22] t1mp: Okay, even simpler [16:23] kalikiana: ok. I'll work on that. I'll first have an MR to add the color properties to ActionBarStyle and a second MR that adds the ScrollingActionBarStyle in the theme and that updates Toolbar to use it. [16:23] ahayzen: I'm thinking https://www.flickr.com/photos/44748317@N08/27572569546/in/album-72157669534030306/ [16:23] this one [16:23] t1mp: Sounds good [16:23] ahoneybun, awesome :-) [16:25] flickr puts ads inbetween the photos now :s [16:25] oh what has become of this world? ;) [16:29] wtf.. and my flickr account disappeared [16:29] I didn't use it for a year or so and I was planning to quit it.. but it is strange that it disappears without contacting/warning me about it. [16:33] odd [16:35] UT does not scale nicely [16:35] wallpapers anyway === chihchun_afk is now known as chihchun === chihchun is now known as chihchun_afk [18:02] ahayzen: your mainView.location way does work [18:02] but I can't get it to do what I want [18:02] ahoneybun, \o/ .... /o\ [18:02] XD [18:03] ahayzen: http://pastebin.ubuntu.com/18185579/ [18:03] that's the issue [18:04] onClicked needs to set the mainView.location [18:04] onClicked: { mainView.location = model.id } or model.name or something? [18:05] let's see [18:05] no wait [18:05] locationModel.selectedIndex = index [18:05] that picks from the List [18:06] I've changed the index thing [18:06] yup you have like two listmodels IIRC [18:06] so you could either put one in the mainview instead, or whenever you set the index, ensure that your location property is updated [18:07] and then make sure it reads the location when it starts [18:07] mm [18:07] never is simple here with QML [18:07] heh [18:07] i would probably have one central ListModel for your locations inside the mainview [18:08] well the locationModel is needed to display the API output [18:08] I don't want it in the mainview [18:08] keep this in the Settings.qml [18:08] isn't the other page reading from the locations as well? [18:08] I can't just have it onClicked and that gets set to mainView.location? [18:09] I've removd it [18:09] yeah you can do that [18:09] ah ok [18:09] I want to keep the main.qml clean of that [18:09] maybe just do ... onClicked: { mainView.location = model } [18:09] use settings.qml to search and set the location then the main.qml will display that [18:09] and make sure the property in the mainview is like ... property var location; [18:10] then you'll be able todo mainView.location.name or mainView.location.id etc to get the current one [18:10] well you put it as string but I can change it [18:10] then in the settings page you need it to set the correct selectedIndex when it loads [18:11] !!! [18:11] well that worked [18:12] \o/ [18:12] mm it is not storing it for the next launch [18:12] will need a way to tell the user to go to settings [18:13] so city and zip code search works this way [18:13] sweet [18:14] yeah to store it...you'll need to put that location property inside a Settings {} object as we tried before [18:14] mm [18:14] but remember you have something already called Settings so rename the import to like QtSettings [18:14] well using a new zip will kinda limit api calls [18:15] https://developer.ubuntu.com/api/apps/qml/sdk-15.04.5/Qt.labs.settings.Settings/ [18:15] popey: your site is down [18:15] but do like "import Qt.labs.settings 1.0 as QtSettings" ... and then QtSettings {} [18:15] in the Settings.qml [18:16] ? [18:17] oh [18:18] mm QtSettings cannot be used as a type [18:20] ahayzen: I might have to start making a Icon finally lol [18:20] hehe :-) [18:20] ahoneybun, i mean to store your mainView.location you could use the Qt.labs.settings for that... anyway gotta run [18:21] thanks [18:31] mm my Nexus 7 does not want to work with the SDK [18:31] but the N4 does [18:32] seems it is not adding the Kit right [19:49] mhall119: ping [19:49] https://github.com/ahoneybun/uCycle/blob/master/uCycle/uCycle.png [19:49] ^ === salem_ is now known as _salem