Hi Martin,

 

great to "see" you again. Yes, we talk about modern theme. Here comes my
replacement:

 

"checkbox":

    {

      alias : "atom",

 

      style : function(states)

      {

        var useCSS = qx.core.Environment.get("css.gradients") &&

          qx.core.Environment.get("css.boxshadow");

 

        var icon;

        if (useCSS) {

          if (states.checked) {

            icon = "asawizzard/mydecoration/form/checkbox-checked.png"; //
19x19

          } else if (states.undetermined) {

            icon = "asawizzard/mydecoration/form/undetermined.png"; // ???
What do mean with this?

          } else {

            icon = "qx/static/blank.gif";

          }

 

        } else {

          // The "disabled" icon is set to an icon **without** the -disabled

          // suffix on purpose. This is because the Image widget handles
this

          // already by replacing the current image with a disabled version

          // (if available). If no disabled image is found, the opacity
style

          // is used.

 

          // Checked

          if (states.checked) {

            if (states.disabled) {

              icon = "checkbox-checked";

            } else if (states.focused) {

              icon = "checkbox-checked-focused";

            } else if (states.pressed) {

              icon = "checkbox-checked-pressed";

            } else if (states.hovered) {

              icon = "checkbox-checked-hovered";

            } else {

              icon = "checkbox-checked";

            }

 

          // Undetermined

          } else if (states.undetermined) {

            if (states.disabled) {

              icon = "checkbox-undetermined";

            } else if (states.focused) {

              icon = "checkbox-undetermined-focused";

            } else if (states.hovered) {

              icon = "checkbox-undetermined-hovered";

            } else {

              icon = "checkbox-undetermined";

            }

 

          // Focused & Pressed & Hovered (when enabled)

          } else if (!states.disabled) {

            if (states.focused) {

              icon = "checkbox-focused";

            } else if (states.pressed) {

              icon = "checkbox-pressed";

            } else if (states.hovered ) {

              icon = "checkbox-hovered";

            }

          }

 

          // Unchecked

          icon = icon || "checkbox"; // 19x19

 

          var invalid = states.invalid && !states.disabled ? "-invalid" :
"";

          //icon = "decoration/form/" + icon + invalid + ".png";

                                                           icon =
"asawizzard/mydecoration/form/" + icon + invalid + ".png";

        }

 

        return {

          icon: icon,

          minWidth : useCSS ? 14 : undefined, // ensure that we have the old
padding

          gap: useCSS ? 8 : 6 // use a bigger gap because of the shadow
(glow)

        };

      }

    }

 

 


 


SAKsystems

Inh. Mustafa Sak

Varrelmannstr. 16

30453 Hannover

Tel.   +49 511 / 165 969 40

Fax   +49 511 / 165 969 49

Mobil +49 163 / 312 6144

http://www.saksys.de

 <mailto:[email protected]> [email protected]

STEUER-Nr. 2613817458

 

  _____  

Von: Martin Wittemann [mailto:[email protected]] 
Gesendet: Donnerstag, 14. April 2011 08:16
An: qooxdoo Development
Betreff: Re: [qooxdoo-devel] 1.4 Theme: You changed a lot at checkbox teheme

 

Hey,

did you take a look at the appearance of the modern theme for checkboxes.
They only use a minimum of images because all other stuff like the box or
the glow has been transferred to CSS if available (in the modern theme,
which we are talking about, right?) Just checked the appearance and can't
find a reason why it should stick to 6x6. Could you maybe supply a sample to
reproduce?

Best,

Martin

 

Am 13.04.2011 um 21:19 schrieb Mustafa Sak:





Hi devs,

 

Your changes are nice, but I can't handle with checkbox image size anymore.
I have been using 19x19 pixel images for theming checkboxes. In 1.3 it
worked fine, but in 1.4 I can't size the checkbox widget to the size of used
images automatically like in 1.3. I copied the checkbox appearance code to
my theme and changes the paths but checkbox is just 6x6 pixel.

 

Any suggestion?

 

Regards Mustafa Sak 

 

 


 


SAKsystems

Inh. Mustafa Sak

Varrelmannstr. 16

30453 Hannover

Tel.   +49 511 / 165 969 40

Fax   +49 511 / 165 969 49

Mobil +49 163 / 312 6144

http://www.saksys.de

 <mailto:[email protected]> [email protected]

STEUER-Nr. 2613817458

 

<Mustafa Sak ([email protected]).vcf><ATT00001..txt><ATT00002..txt>

 

<<attachment: Mustafa Sak ([email protected]).vcf>>

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to