We need to apply watermarks, both image and text with an opacity applied.
It seems from the documentation that this is possible for images, but it doesn't seem to work.
imageQuery="filter=alpha(0.5)"
And there appears to be no option for text watermarks. Am I missing something as I would have thought this would be a common requirement for watermarking.
Here is an example of what we are trying to achieve:
http://i.imgur.com/FGxynsE.jpg
Text layers can have an 8-digit color specifier. Opacity is the last two digits. I.e, FFFFFF99 would be a partially tansparent white.
<watermarks>
<text name="test2" text="Hello #{name}!"
vertical="true" align="topright" color="FFFFFF99" />
</watermarks>
Related
I have to create a control which aligns some of its button on the left and some others on the right in one row.
I've immediatly thinked to WPF Toolbar so I've typed:
...
<ToolBarTray DockPanel.Dock="Top">
<ToolBar ToolBarTray.Locked="True" Width="{Binding ElementName=Tray, Path=ActualWidth}">
<DockPanel>
<ToolBarPanel DockPanel.Dock="Left">
<Button ...>
</ToolBarPanel>
<ToolBarPanel DockPanel.Dock="Right">
<Button ...>
</ToolBarPanel>
</DockPanel>
</ToolBar>
</ToolBarTray>
...
but this didn't work: the buttons with dockpanel.dock = right are just attached on the right of the first ToolBarPanel and, if I've understood something about xaml, this is absolutely correct, that's why I tried forcing the width of the toolbar.
If I use a Grid with a spacing column, the right ToolBarPanel moves correctly to the right, but my control needs to be resized and I guess there's no easy way to assign the correct width to the column.
Is there some easier way to achive my task?
I have tried many methods to insert the image with listitem
but there is not any error with that, I still can't show my image
please help
Like it says on the documentation for Listbox,:
If you wish to create a list with variable height rows, or with
non-text content, you should instead use the richlistbox element:
<richlistbox>
<richlistitem>
<description>A XUL Description!</description>
</richlistitem>
<richlistitem>
<image src="chrome://myExt/content/images/myImage.png"/>
</richlistitem>
</richlistbox>
gtk.Label(....) gives a label as a clickable link if the label-text is formatted as a link (text within a "a href-tag"). It is then automatically shown in blue and underlined. (How) can I change the style, e.g. remove the underlining and change the color?
Python 2.7.4, Windows7, gtk 2.24.10.
You can use a span tag to set text attribute.
Suppose label's text is:
GNU
now change it to:
<span foreground="blue" underline="none">GNU</span>
Here is the screenshot:
I have the following code to generate a pdf from data:
<p:barchart is3D="true" legend="false" orientation="horizontal" width="520">
<p:series key="Gráfico">
<ui:repeat var="ocr" value="#{myBean.value}" >
<p:data key="#{ocr[0]}" value="#{ocr[1]}" />
</ui:repeat>
</p:series>
</p:barchart>
The problem is that the key from p:data gets aligned to the right (for some odd reason). I tried placing the code between divs with text-align, but it didn't worked.
I want the alignment to be on the left.
If someone has an answer, or at least an idea for me to try, I'd really appreciate.
Thanks in advance.
Is the value you're assigning an int or other numeric value? Trying casting it to a String instead.
So, if you add a bunch of inputs to a FieldSet, the last one has round corners on the bottom. In my form, tho, I hide and show inputs inside the form, depending on a Checkbox at the top of the form.
So now, it is possible that an input, tho logically not the last one in the Fieldset, to be visually, and temporarily, the last one.
Does anybody know how Sencha determines which is the last input in the Fieldset? Just looks which one is the last in the array of inputs, or there is a property I can set to an input to tell it that it is the last one now ... ?
There is a CSS rule, .x-form-fieldset .x-field:last-child, which styles the last child of a fieldset to have rounded bottom corners. There is a bit more to the rule to handle edge cases, but any fields that are added (or hidden/shown) to that fieldset will have the appropriate styling applied just based on their HTML position alone.
The appropriate rule is in \resources\themes\stylesheets\sencha-touch\default\widgets\_form.scss:294 in release 1.1.0.
Thanks to mistagrooves post from above, I've managed to fix the problem. The idea is that I programmaticlly set a class "last" to the input I want it t be rendered as last, and then in my CSS, I rewrite the rules for that .last class like so:
.last, .last .x-form-field-container, .last .x-form-field-container *
{
-webkit-border-bottom-right-radius: .4em;
border-bottom-right-radius: .4em;
border-bottom: none;
}
.last, .last .x-form-label, .last .x-form-label *
{
-webkit-border-bottom-left-radius: .4em;
border-bottom-left-radius: .4em;
}
Hope it helps