From: <no-...@en...> - 2008-09-04 15:59:31
|
Author: toma Date: 2008-09-04 08:59:30 -0700 (Thu, 04 Sep 2008) New Revision: 35833 Modified: trunk/THEMES/b_and_w/theme.edc Log: Desklock in. Rather simplistic now. Would like to keep it that way... perhaps some positioning fixes, but its does work well across a variety of different backgrounds. Modified: trunk/THEMES/b_and_w/theme.edc =================================================================== --- trunk/THEMES/b_and_w/theme.edc 2008-09-04 15:06:26 UTC (rev 35832) +++ trunk/THEMES/b_and_w/theme.edc 2008-09-04 15:59:30 UTC (rev 35833) @@ -5,14 +5,15 @@ // entry (done - review) - Text select works oddly. Select a single letter like W to // see this odd behavior. Doesnt seem to offset correctly. // battery popup (done - review - see 'code' for notes) +// fileman (list mode) +// desklock (done - needs more work. See FIXMEs) // // note: make these (and menu) use a common image with a logical name. // sys (done - review - see 'code' for notes), Move, Resize -// +// // TODO: Working order +// Theme Preview widget has gone all whacky! // fileman (icon mode etc.) -// desklock (note: make the widgets compatible with any background -// as this is a feature of the desklock to change wallpaper.) // tlist // slidesel (i know. no examples of this around). // exebuf @@ -25,8 +26,6 @@ // animation for large screens. Make sure this // is simple.) // toolbar -// fileman (list mode) -// fileman (icon mode etc.) // wizard (just placeholder and basics - wizard code not complete) // icons (lots of them! lets also find all the missing ones in e and // at least put a placeholder in the theme for them with "fixme" @@ -15529,6 +15528,254 @@ } } + group { name: "e/desklock/background"; + images { + image: "vgrad_dark.png" COMP; + image: "grill_dark_tiny_pattern.png" COMP; + } + parts { + part { name: "background_image"; + description { state: "default" 0.0; + image.normal: "vgrad_dark.png"; + fill { + smooth: 0; + size { + relative: 0 1.0; + offset: 36 0; + } + } + } + } + part { name: "grill"; + description { state: "default" 0.0; + image.normal: "grill_dark_tiny_pattern.png"; + fill { + size { + relative: 0 0; + offset: 144 144; + } + } + } + } + } + } + +// FIXME: Reposition E logo above the text and input box? +// FIXME: Make the rel2 of the passwd border relative to the +// e.password.text so that long passwords can be typed. + + group { name: "e/desklock/login_box"; + images { + image: "logo_white_128.png" COMP; + } + parts { + part { name: "logo"; + mouse_events: 0; + description { state: "default" 0.0; + min: 64 64; + max: 64 64; + image.normal: "logo_white_128.png"; + } + } + part { + name: "e.text.title"; + type: TEXT; + effect: SOFT_SHADOW; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.0 0.5; + rel1 { + relative: 1.0 0.0; + offset: 8 3; + to: "logo"; + } + rel2 { + relative: 1.0 0.3; + offset: 0 0; + to: "logo"; + } + color: 255 255 255 255; + color3: 0 0 0 64; + text { + text: "Enter Password"; + font: "Sans:style=Bold,Edje-Vera-Bold"; + size: 10; + align: 0.0 0.5; + min: 1 1; + text_class: "desklock_title"; + } + } + } + part { + name: "pulse_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "passwd_border"; + rel2.to: "passwd_border"; + } + description { state: "pulse" 0.0; + inherit: "default" 0.0; + color: 255 255 255 128; + } + } + part { name: "error"; + type: RECT; + mouse_events: 0; + clip_to: "error_clip"; + description { state: "default" 0.0; + rel1.to: "passwd_border"; + rel2.to: "passwd_border"; + color: 255 255 255 255; + } + } + part { name: "error_clip"; + type: RECT; + mouse_events: 0; + clip_to: "pulse_clip"; + description { state: "default" 0.0; + rel1.to: "passwd_border"; + rel2.to: "passwd_border"; + color: 255 255 255 255; + } + description { state: "invalid" 0.0; + inherit: "default" 0.0; + color: 255 128 128 255; + } + } + part { name: "passwd_entry_clip"; + type: RECT; + mouse_events: 0; + clip_to: "pulse_clip"; + description { state: "default" 0.0; + visible: 1; + rel1 { + offset: 10 3; + to: "passwd_border"; + } + rel2 { + offset: -17 -4; + to: "passwd_border"; + } + } + } + part { name: "e.text.password"; + type: TEXT; + clip_to: "passwd_entry_clip"; + description { state: "default" 0.0; + fixed: 0 1; + align: 0.0 0.5; + rel1 { + relative: 0.0 0.0; + offset: 0 0; + to: "passwd_entry_clip"; + } + rel2 { + relative: 0.0 1.0; + offset: 0 0; + to: "passwd_entry_clip"; + } + color: 0 0 0 255; + text { + text: "****"; + font: "Sans:style=Bold,Edje-Vera-Bold"; + size: 16; + align: 0.0 0.5; + min: 1 1; + text_class: "desklock_passwd"; + } + } + } + part { name: "cursor"; + type: RECT; + mouse_events: 0; + clip_to: "passwd_entry_clip"; + description { state: "default" 0.0; + min: 1 16; + max: 1 16; + align: 0.0 0.5; + fixed: 1 1; + rel1 { + relative: 1.0 0.0; + offset: 0 -3; + to: "e.text.password"; + } + rel2 { + relative: 1.0 1.0; + offset: 1 1; + to: "e.text.password"; + } + color: 0 0 0 255; + } + } + part { name: "passwd_border"; + mouse_events: 0; + clip_to: "error_clip"; + description { state: "default" 0.0; + rel1 { + relative: 1.0 0.35; + to: "logo"; + } + rel2 { + relative: 5.0 0.8; + to: "logo"; + } + image { + normal: "shelf_inset.png"; + middle: 0; + border: 7 7 7 7; + } + fill.smooth: 0; + } + description { state: "checking" 0.0; + inherit: "default" 0.0; + color: 255 255 255 128; + } + } + } + programs { + program { name: "pulse.1"; + signal: "e,state,checking"; + source: "e.desklock"; + action: STATE_SET "pulse" 0.0; + target: "pulse_clip"; + transition: SINUSOIDAL 0.5; + after: "pulse.2"; + } + program { name: "pulse.2"; + action: STATE_SET "default" 0.0; + target: "pulse_clip"; + transition: SINUSOIDAL 0.5; + after: "pulse.1"; + } + program { name: "pulse.stop"; + signal: "e,state,invalid"; + source: "e.desklock"; + action: ACTION_STOP; + target: "pulse.1"; + target: "pulse.2"; + after: "pulse.reset"; + } + program { name: "pulse.reset"; + action: STATE_SET "default" 0.0; + target: "pulse_clip"; + transition: SINUSOIDAL 0.5; + } + program { name: "go_invalid"; + signal: "e,state,invalid"; + source: "e.desklock"; + action: STATE_SET "invalid" 0.0; + target: "error_clip"; + transition: DECELERATE 0.5; + } + program { name: "stop_invalid"; + action: STATE_SET "default" 0.0; + target: "error_clip"; + transition: DECELERATE 1.5; + } + } + } + ///////////////////////////////////////////////////////////////////////////// /*** ICONS ***/ // FIXME: DO |