I'm adding a new ribbon item to a custom ribbon in my Excel workbook using Office RibbonX Editor. The callbacks are all set up, and the image is a 64x64 png file with a transparent background. As you can see, the images all reverse when switching between white and black theme, with the exception of the first one. I can't see anything different between the first image file and the rest, and can't find any reference to image reversal for ribbon icons so wanted to ask here.
This is the ribbon using white theme:
And here is the same ribbon, using Black theme:
As you can see, apart from the first icon, the four right hand icons have all reversed from black on white and red on black to white on black and red on white.
This is the image file for the icon which has been loaded into the editor:
Here is the Xml for the first ribbon 'button', which structurally matches every other 'button' on the ribbon:
Related
I am currently building a Excel addin with a custom task pane.
The background color respects the selected theme, i.e. it is Dark Gray when that Office theme has been selected.
However, the text of labels is not. It is still black even with the Dark Gray theme, meaning it is barely readable.
Is there a way to get the correct text color from Office based on the selected theme? If not, how else would you fix that?
Is it possible to change the map POI icons with a custom image or logo? I tried from StyleEditor, but i could change only the color of the selected POI.
You can change the color and texture of that selected POI category
e.g: in the StyleEditor, select "restaurant” from the map and change its color to red->all restaurant POIs will be red.
Each POI has a unique texture ID associated to it (found in the "TexID" text box)
e.g: out-of-the box the restaurant POI has texture id 1020 associated to it
Changing the ID to another texture ID: insert the new ID (see Features window at zoom levels 17-18) in the "TexID" text box (make sure that you choose "All Levels" before making the change so that the texture changes is applied at all zoom levels).
To add a new a new texture: first, make sure the image you want to add is in PNG format, colour space RGB, and the image resolution is 512x512 px.
copy the image in StyleEditor/MapResources/Common folder or in the Style's folder (e.g: StyleEditor/DayStyle folder if you are modifying the Daystyle)
add the texture in the StyleEditor from the Dialogs menu -> “Add Textures” option
browse for the desired image, in the "Add Textures" dialog box, by pressing the + button
give it an ID (make sure its unique) by entering it in the TextureID input box
click Add & OK buttons to finish adding up the new texture
Make sure to save your style
I do have a dark themed tableau dashboard where the fonts will be white in color. whenever I try to edit the text in textbox, the editor pops with white as its background color (font color is also white so I cant see the text). Is there any option that I can change the background color of the text editor ?
Can you post a screenshot? When I change the color I get the same matching color in the text boxes:
I have transparent top bar. On header links text is white on blue background. But content has white background. I would like to change top bar text color, when menu is on content area.
Browsed the code but found no solution. Any advise?
How I can set different border for Dialog. for bottom, top, left and right border.
I need to set round angle for bottom left and right angles. But top angles have to be direct.
You can achieve it by 'Image Border Wizard' for DialogContentPane style.
Follow these steps
Create an image that has your required borders and some empty area in the center.
Open your '.res' file in Resource Editor, under your active theme
create a new style say MyDialogContenPane for unselected state.
Make sure you derive this new style from DialogContentPane's
unselected state, you can do this by going to 'derive' tab and selecting 'DialogContentPane' in the combo-box.
With this style's window open move to 'border' tab and click the 'Image
Border Wizard' button to open a new window. Under the tab 'Create Image'
select radio button 'Use A File', choose the image file created in #1
in this file dialog. Move to tab 'Cut Image' adjust the guides on the
image and move to tab 'Apply To', here you select the listed component
'MyDialogContentPane' and hit 'Generate' button and close this
window. The new border can be previewed in the style window.
NOTE: If you want this new border to be done for all the dialogs than instead of creating new style 'MyDialogContentPane' you reuse the 'DialogContentPane' style with the above steps.
I would recommend you to go through the Shai's blog posts 'LWUIT Resource Editor Tutorial Part 1' till part 10. To better understand the Resouce Editor its features and capabilities.