themes

save android theme using shared preferences

天大地大妈咪最大 提交于 2019-12-20 07:28:26
问题 Hello I am trying to save a theme with shared preferences. When the user clicks a button with a certain theme I want that theme to be set as default and saved so when they reopen the app its still that new theme. Main Activity: /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Utils.onActivityCreateSetTheme(this); setContentView(R.layout.activity_main); findViewById(R.id.button1).setOnClickListener

Progress Dialog not aligned in the ActionBarSherlock after API Level 11+

假如想象 提交于 2019-12-20 07:15:04
问题 In my Project i have add Library ActionBar Sherlock and create the custom theme for my project. I have created custom theme from here. But after applying the theme my Progress Dialog in not aligned(means not displayed in the center of screen). Please not this issue appears in API Level 11 or above. Here i have attached the screen shot of emulator running OS 4.2.2. I am unable to figure out this issue... ScreenShot :: MyCustomTheme ::(values folder) <?xml version="1.0" encoding="utf-8"?>

Can you turn off visual styles/theming for just a single windows control?

回眸只為那壹抹淺笑 提交于 2019-12-20 06:43:15
问题 My Windows Forms application uses the following standard line of code so that visual styles (theming) is enabled for the entire application... Application.EnableVisualStyles(); ...which works just fine, all the controls have a themed appearance instead of the flat battleship gray that you would get otherwise. But I need to turn off visual styles for just a single control instance. I cannot remove the above line because then I would lose theming from all the controls. Is it possible to remove

Windows 7 Native Look for .NET ListView

别等时光非礼了梦想. 提交于 2019-12-20 06:09:09
问题 Currently, my ListViews look like this: How can I achieve that Windows 7 native look below? 回答1: This was answered here: How to get Windows native look for the .NET TreeView? The given solution works for both for the ListView and the TreeView. public class NativeListView : System.Windows.Forms.ListView { [DllImport("uxtheme.dll", CharSet = CharSet.Unicode)] private extern static int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList); protected override void CreateHandle()

Installed MoonRise UI Theme now having snips of code highlighting

匆匆过客 提交于 2019-12-20 05:34:24
问题 I followed the tutorial for this but at the end of it I was having some highlighting issues in my code. I have been looking for hours and have not seen anyone with the same problem. This image shows what my screen looks like: 回答1: In Window > Preferences: General > Editors > Text Editors > Annotations select Warnings and change Text As: from Box to Native Problem Underline . 来源: https://stackoverflow.com/questions/46988279/installed-moonrise-ui-theme-now-having-snips-of-code-highlighting

How do I change the “Know More” text and link in Corporate Plus wordpress theme?

流过昼夜 提交于 2019-12-20 04:15:59
问题 I'm using a theme called "Corporate Plus" on WordPress. The problem is, I want to edit a button in the front page which says "Know More", an <a> element with '#' as a link. They give no option for editing this in the theme options, and I cannot find any instance of 'know more' in the entire theme folder. If I open up the site and inspect element, the CSS for the item is shown to be on the file path 'index(72)' > 72nd line of the index file. I then open up 'view source' and find that sure

Choosing a style / theme programmatically at run time

安稳与你 提交于 2019-12-20 01:35:41
问题 I have device A and device B. I can easily detect if the app is running on device A or on device B. Now what I need is to use on theme (styles) for device A and other on device B. How can I do this? 回答1: In your Activity.onCreate(), you can call setTheme() to set the theme you would like to use. Note this must be done before you call setContentView() or otherwise create your UI. Keep in mind that when the user launches your app, the system will show a preview of it while this happen. This

Datatables Bootstrap theme not applying when using ReactJS

早过忘川 提交于 2019-12-19 10:43:20
问题 I am fairly new to RequireJS, so please be gentle! Below is a link with my HTML and JS and if you run it you will see that the datatable is initialized correctly but it is not applying the bootstrap theme. Link with problem: https://jsfiddle.net/sajjansarkar/c2f7s2jz/2/ What am I doing wrong? Below is my JS (in case the fiddle doesnt work): requirejs.config({ paths: { 'jquery': 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery', 'bootstrap': 'https://maxcdn.bootstrapcdn.com

Get colors of current gtk style

我只是一个虾纸丫 提交于 2019-12-19 09:41:43
问题 I use PyGTK and I want to get colors of a widget (for example bg color), I run such a code: gdkColorToRgb = lambda gc: (gc.red//257, gc.green//257, gc.blue//257) widget = gtk.HBox() ## for example style = widget.get_style() for i in range(5): print i, gdkColorToRgb(style.bg[i]) But it does not give colors of my current gtk theme(style). It seems to be for default gtk theme (my current theme is dark, while this code gives light colors) I use ArchLinux and PyGTK 2.24.0 (GTK 2.24.5) 回答1: I just

When overriding WPF templates do I have to override each theme's template separately?

我只是一个虾纸丫 提交于 2019-12-19 08:49:09
问题 I have a requirement to change a very small part of the WPF ComboBox's template. If I take a copy of the existing template for the Luna theme and make the change it all works fine initially. But if the user has a different theme, my ComboBox retains it's custom theme, (Which is obviously based on Luna) so looks out of place. Is there any way of overriding just parts of a template so the majority of the template still respects the windows theme? I notice that parts of the template define an