/srv/irclogs.ubuntu.com/2009/04/21/#ubuntu-artwork.txt

robstahiya14:16
kwwiihi robsta14:17
SiDihello14:17
robstathorwil, around?14:18
thorwilrobsta: no, i have to go outside, reste vom efeu von einer garagenwand abkratzen :}14:41
thorwilback in 1 or 2 hours14:41
robstathorwil: have fun, good work so far, but we need to talk about composite widgets14:42
thorwilrobsta: back16:53
robstathorwil: so, composite widgets don't work just by drawing them up16:54
thorwilrobsta: i know that's why i added a layer16:55
robstaoh? tell me more16:55
thorwilrobsta: the different arrows and buttons for SpinButton and ComboBoxEntry are free standing on the widget-graphics layer16:55
thorwilrobsta: but have the base widget graphic as background on a "context" layer16:56
thorwilrobsta: one more layer that needs to be hidden on export, but you can work on the sub-widgets in context16:56
robstahmm16:57
robstanot sure i get it16:57
thorwilrobsta: get the latest pioneer.svg, please16:57
robstathorwil: there is no "export"16:57
thorwilrobsta: btw, you should subscribe to receive commit messages16:57
robstathorwil: everything is done when the theme is loaded, things are located via plates16:58
robstathorwil: so we would need overlapping plates16:58
thorwilrobsta: what i meant with export is editing time vs using-time ;)16:58
robstaok16:58
thorwilrobsta: we already need to hide the background layer, right? at least to get alpha for rounded edges and such16:59
robstai think so16:59
robstathorwil: just looking at the plates, things make more sense now16:59
robstathorwil: but the up/down spin-button-arrow need to be on separate plates17:00
thorwilrobsta: ok17:01
thorwilrobsta: i wonder if those plates should have the exact size of the sub-widget graphics, or the size of the desired active area or what?17:01
robstathorwil: size of the active area17:03
thorwilok17:03
robstathorwil: arrows are drawn using CSS "background-image"17:03
thorwilrobsta: i will adjust the plates now. also started CheckButton yesterday17:04
thorwilrobsta: how is the entry drawn, then?17:05
thorwilentry part of spinbox17:05
robstathorwil: that is an actual GtkEntry17:05
robstathorwil: but we have to hack things, so the arrow appear inside17:05
robstathorwil: will be challenging17:06
thorwilrobsta: sounds confusing. but the arrows will be drawn on top of the GtkEntry graphic, with proper alpha?17:07
robstathorwil: not sure yet17:07
robstathorwil: we need an entry that doesn't have the right border17:07
robstaor better, the GtkSpinButton plate must not cover the arrows17:08
robstaso basically spin-button will have 3 plates, "entry", "arrow-up", "arrow-down"17:08
robstathe problem will then be that arrows are not redrawn when focus moves into the entry17:09
robstaso we need a hack17:10
robsta(if at all possible)17:10
robstathorwil: drop me a mail if you have any questions, i'm monitoring the repo17:12
thorwilok17:12
thorwilso now the standing questions is whether it will be slicing or layering for the arrows17:13
robstathorwil: ?17:13
thorwilrobsta: what we just went through. starting one line above your "not sure yet" ;)17:14
robstathorwil: let me use my mad graphics skills http://www.gnome.org/~robsta/tmp/spin-button-plates.png17:16
robstathis is how the plates will have to be arranged17:16
thorwilrobsta: with no overlap. that's slicing, then17:17
robstaok17:17
robstayes, sub-widgets are separate, not drawn on top of each other17:18
thorwilso the "spin and combo context" layer can go. actually makes this simpler to handle17:18
robstayes, things are not composed in gtk17:19
robstaeverything is arranged in tiles, which makes it so hard to have sub-widgets appear "inside"17:20
thorwilbut it means you need to stretch the arrows for taller SpinButtons :(17:20
thorwilrobsta: couldn't you do a composite of the arrow background with arrow graphics that won't be stretched before passing that on?17:21
robstathorwil: think not, have to investigate17:24
thorwilok. i see the Human Spinbox has the focus frame drawn around the entry part, excluding the arrows. now i know why. sucks17:25
robstathorwil: afaik the spin button just draws arrow primitives next to the entry part17:25
robstathorwil: not saying it's impossible but needs hacks17:26
thorwili was under the impression all about gtk themeing is a hack? ;)17:26
robstathat'd be too harsh17:27
robstait has its roots in the pre-css era, that explains a lot17:27
robstajust like retrofitting css onto netscape 4 was problematic ...17:28
robstathorwil: anyway, will the theme stay with hard corners?17:28
robstaor could we get like 3 px roundings some day?17:28
robstathe arrows look very pointy too17:28
thorwilrobsta: drawing "traditional" arrow buttons wouldn't be a problem. easy way out regarding focus, but still the stretching problem17:29
thorwilrobsta: this theme has hard corners to be nonbuntu and to speed up the creation17:30
thorwilrobsta: if you really want changes you shall have them, but i would prefer to pull this through to then have a round of what-would-robsta-like17:31
robstathorwil: sure, maybe once i'm about to use it as my main theme17:32
thorwilrobsta: i expect a need for tweaks once we can see it in use in any case17:32
robstathorwil: i'll try to set up a theme this week, so at least TheWidgetFactory works17:34
thorwilgood17:35
robstaok, see you17:38
thorwilcya!17:38

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