I am getting the following "margin" around my menuitems that i cannot figure out how to remove:
I have tried setting the margin to 0 and adjusting the border brush color, nothing seems to work.
I am just looking to either change the color to match the background or remove it completely.
Thanks
You probably need to change the Template of the MenuItem as that part might not be configurable via properties. (-How to get the default template-, so you can modify it)
Related
I am using DB-Visualizer 9.2.10 and I want to change the border color of the editor but I don't see any border option to change. Below image shows the options colors and borders but in my pro version I don't see this option. Is there any other way to accomplish the same.
Thanks
You should be able to change the border by going to Tools -> Properties.
You can either select one of the predefined styles or specify a small image file to use for the border.
You should also be able to change it by going to Database -> Connections
I started a Codename One project with the "Hello World bare bones". I used to define the styles in the Theme tab from the Designer but now it is becoming tedious.
Actually for some selectors, even if I override (unchecking the Derive box) some properties the style is not changed in the Designer (see below) or in the app itself.
However, in the list of selectors, the color is not the one I selected but the alignment seems to be it.
It seems that the theme is locked somewhere. Do I make a mistake, or should I set a constant to "unlock" the theme, or even should I clear some directories?
Please note that I am using NetBeans with designer V 1.1
.
Edit March 1st 2017
Following #Diamond's great tips, I was able to change the foreground color by setting the Border to empty (instead of NULL). However now the alignment is still not what I expect (see below). How can I do for this property ?
Any help appreciated,
In the Designer, Border is superior to background color and background image. Which means if the border image is set, a background color will have no effect unless the border is just a stroke or line.
Always solve this with these few steps:
Go to the Border tab and uncheck the override.
Click the ... button next to Border Help and a new Dialog will show.
Change the Type (First line) to Empty and click Ok.
Your background color will now have an effect.
How do I change the transparency of the text on a Sub floating action button?
Ive tried making a uiid and deriving the floatingactionbutton, which didnt work. And I also made one to derive the floatingactiontext, which also didnt work.
You need to customize the color in two places both in the round border and in the background color while making transparency 0.
See the following screenshots:
I am using jqvmap to render clickable world map. I set borderWidth=0 but still it is giving border to each country. I want all maps with no border. Seems like I will need to set some other property along with borderWidth.
If no possible then how I can set map fill color to border for selected countries so it will look like no border.
Please help.
By simply setting the BorderColor parameter to the same color as the map I was able to make them "disappear". Looking at the jquery.vmap.js I see that there is a condition such that the parameter passed along with the map for setting the border width will only be used if it's greater than 0, so you can either a) set the border to the same color as the map or b) modify the jquery.vmap.js to set the border to 0 as a default. I've tried both and got the desired result.
I'm changing the look of some Controls that I use in my Microsoft Surface Application at the moment. And today I'm working on a SurfaceListBox.
I have the template for it and already changed background and borders and other stuff.
But I really cannot find where I can change the color of the rectangle that appears on the ListBoxItem when you touch the ListBox. At the moment it's just white and I want to change that.
It's not something like the effect that you can see when the item is selected. I already found that and changed that so my selected item now appears in a different color. But the effect in the second when you touch the item stays white.
So where can I change this effect?
If you mean the bright, white highlight that happens when you press your finger against an item you should look into the SurfaceShadowChrome. It's used by (almost) all surface controls to give feedback when the user is pressing on a control.
It does have a Color property that you can modify to suit your needs. Apart from the color, and the tweaking of corner radius and shadow offset, it's not a very flexible decorator. But hopefully, you'll be able to make it do what you need.