GUI Customization
Posted: Fri Oct 14, 2016 5:35 pm
HI,
As part of my GUI customization I have a textfield and checkbox for an element. Both these labels should be similar, but I am using fontInherit so I couldnt trace it out .Please help me with proper code.
Please go through the code I used.
Here scale and scalefit are two attributes for same element ex.These two varibles are varying with font size and font family in output. I want scalefit font to have for scale as well.
Thank you!
Best Regards,
Mounika
As part of my GUI customization I have a textfield and checkbox for an element. Both these labels should be similar, but I am using fontInherit so I couldnt trace it out .Please help me with proper code.
Please go through the code I used.
Code: Select all
*[class~="topic/ex"]:after {
display:block;
content: "scale " oxy_textfield(edit, '@scale', width, 2.5em)
oxy_checkbox(edit, "@scalefit",
values, "yes",
uncheckedValues,"no",
labels, "scalefit",
fontInherit, true
);
font-family:sansserif, verdana, helvetica;
font-weight:normal;
font-size:8px;
}
*[class~="topic/title"] *[class~="topic/ex"]:after {
display:block;
content: oxy_label(text, "scale ", styles,
"font-size:8px;color:black;") oxy_textfield(edit, "@scale", width, 2.75em)
oxy_checkbox(edit, "@scalefit", values, "yes", labels, "scalefit",fontInherit, true);
}
*[class~="topic/ex"][scale]:not([scalefit]):after {
display:block;
content: oxy_label(text, "scale ", styles,
"font-size:8px;color:black;") oxy_textfield(edit, '@scale', width, 2.75em);
}
*[class~="topic/ex"][scalefit]:not([scale]):after {
display:block;
content: oxy_checkbox(edit, '@scalefit', values, 'yes',labels,'scalefit',fontInherit, true);
}
Thank you!
Best Regards,
Mounika