Styling the action bar title text and icons - menu

i am having a problem with this line in code inside theme.xml
#color/actionbar_text
it says there is no actionbar_text inside color dir. Where is this color directory anyway?
and which format should actionbar_text should be like for icons we do
android:icon="#drawable/action_search" where action_search is of png format
plz help

Related

Office UI Fabric theming

I want to use the body text color in my web part, so if the theme is black, it would display text in white, if the background is white, it'd display it in black. Currently I am referencing this in my .scss file:
#import '~office-ui-fabric-react/dist/sass/References.scss'
I'm looking at these files under office-ui-fabric-react/dist/sass:
_Font.scss and _Color.scss, but I'm not finding anything related to bodytext color.
Any help is appreciated.
You can reference theme colors within your scss files like so:
.myClass {
color: "[theme: themePrimary, default: #0078d7]";
}
I believe in your situation you would use "black" or "neutralPrimary" for your color as it should invert when using a theme that is inverted (dark or black background).

Display approval sign/check mark (✓) on Kivy Label

I am working on a Kivy(Python) Project and I need to display approval(✓) and cross(X) symbol in different scenario. I can display cross symbol but unable to display other one. Is there any way to do this ? Thanks.
Note: I have tried, writing text:'✓' and text:u'2713' under Label in .kv file but it doesn't work.
The font supplied with Kivy doesn't include the tick mark. You need to use fonts that include those symbols. Tick is available in fonts Arial Unicode MS, Wingdings and Wingdings 2. You can download the font ttf file and have it in the same folder with your script.
Link to download the font
https://www.download-free-fonts.com/details/88978/arial-unicode-ms
Then include the font and use it in the label as follow:
Label:
font_name:'arial-unicode-ms.ttf'
text: "This is the tick ✓"
Bro I was also troubling from same problem from morning but now I figured it out actually so I would like to share it with you.I used below code:
def wrong_btn(self):
self.ids.wrong_button.text = u"⌫" self.ids.wrong_button.font_name=r"C:\Users\95532\AppData\Local\Microsoft\Windows\Fonts\Arial-Unicode-MS.ttf"
I used this to specify the folder in which the font is stored so you can also download the font you want and just specify the path and don't forget use a r i.e raw string mark or else it wont work I wasted my whole day searching for that hope this helps you bro

how can i change color of image icon with the help of android coding

I wanted to change color of image icon image format and image size pro-grammatically according to my requirement with the help of android code.how can i change color with the help of any specific code please suggest something.
you can use the website http://www196.lunapic.com/editor/ to change the color of icon and resizing image.If you want to do from the code then try it.
Drawable mDrawable = context.getResources().getDrawable(R.drawable.balloons);
mDrawable.setColorFilter(newPorterDuffColorFilter(0xffff00,
PorterDuff.Mode.MULTIPLY));

how do i create a text on path?

i really want to know how to create texts in a background using corel draw 4, for example on some currencies and certificates, you may have, "Bank of Ghana, Bank of Ghana", written plenty in a wavy style with small sized fonts in the background or if its a school, you have the name of the school written plenty but small small font size in the background. Any help please??
How to Create Text on Path as per Example
Draw a path
Type Text
Example
Select Both Path and ext
Click Text from Menu and Click Fit Text to Path
Example
Finish
If you find my answer helpful please mark it, So others can take the benefits of it.
You can add any text along the path of an open object like line or a closed object like squre or circle.
Draw any path (cirlce, squre, lines)
Type Text
Type Text
With Pick tool , select a path.
Select Path
Click Text Fit text to path.
Text-> Fit to Path
You can also edit fit text to a path by clicking these icons.
Edit Setting

Changing the color of the link on hover using stylesheets

Hai all,
I don't know why the following lines of code isn't working. My aim is to change color of the text when the link is hovered..
self.syncFolderSelection_addFileTypesTextBrowserInTable.setStyleSheet("QTextBrowser:hover{color:#00ff00;background-color:#ff0000;}")
The BG color chages without any error but the foreground color is not. Can anybody correct me..
The QTextBrowser displays HTML source, so if you want to change the color of links in the HTML, add <style> tags with your updated styles to the HTML source before sending it to the QTextBrowser.

Resources