themes

How to change app default theme to a different app theme?

对着背影说爱祢 提交于 2019-12-17 10:58:11
问题 I have an Android app that has a default theme of Holo.Light but I want to change it to Theme.Black.I tried to do this by changing the style tag in the manifest android:theme="@style/AppTheme" to Theme.Black but it cannot be found.Is there extra steps I have to take in changing the theme? 回答1: Actually you should define your styles in res/values/styles.xml . I guess now you've got the following configuration: <style name="AppBaseTheme" parent="android:Theme.Holo.Light"/> <style name="AppTheme

Angular material Could not find Angular Material core theme

落爺英雄遲暮 提交于 2019-12-17 07:26:38
问题 In my Angular2 project I install lastest material plugin from https://material.angular.io/guide/getting-started. Next I add @import '~@angular/material/prebuilt-themes/deeppurple-amber.css'; to my css file for my component. But in my console Angular shows this error: material.es5.js:148 Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming` The material components not

Trouble referencing a Resource Dictionary that contains a Merged Dictionary

爱⌒轻易说出口 提交于 2019-12-17 04:53:29
问题 I have a library, CommonLibraryWpfThemes, with several Resource Dictionary XAML files in it. My Themes/Generic.xml file contains a ResourceDictionary.MergedDictionaries declaration that merges all the other files together. Generic.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/CommonLibraryWpfThemes;component

Trouble referencing a Resource Dictionary that contains a Merged Dictionary

空扰寡人 提交于 2019-12-17 04:52:54
问题 I have a library, CommonLibraryWpfThemes, with several Resource Dictionary XAML files in it. My Themes/Generic.xml file contains a ResourceDictionary.MergedDictionaries declaration that merges all the other files together. Generic.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/CommonLibraryWpfThemes;component

Windows Visual Themes: Gallery of Parts and States?

好久不见. 提交于 2019-12-17 03:52:29
问题 Microsoft Windows lets programmers draw GUI elements using the look and feel of the current theme using functions like DrawThemeBackground and DrawThemeText. The elements are specified by Class, Part, and State, as described at the Parts and States page at MSDN. Unfortunately, the page is not very informative (at all!). So the question is: is there somewhere a reference of all these parts and states, preferably with images of the elements (in the default Windows Vista/7 theme)? 回答1: I have

Android: how to change the color of the datepicker divider?

六眼飞鱼酱① 提交于 2019-12-17 02:28:13
问题 I've got a datepicker in my Android app, but now I want to change the color of the blue dividers into green (see the image below this text). There are some other discussions on Stackoverflow that talk about the same, but none of them gives an answer which leads to a solution. So I went looking myself and found there is actually an android:datePickerStyle and there is also an android:divider. I don't know however, whether the divider is actually referring to the divider in the datepicker at

How to set background image in actionbar android [closed]

余生颓废 提交于 2019-12-14 04:23:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I'm a new Android developer. How to setting background image in actionbar android. I can add image background within my actionbar. but cant scaling my image. My style <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> </style> MainActivity @Override protected

How can I force browsers to reload cached CSS files when using Asp.Net Themes? [duplicate]

廉价感情. 提交于 2019-12-14 04:16:39
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: CSS in App_Theme folder gets Cached in Browser I've seen "What is an elegant way to force browsers to reload cached CSS/JS files?" but the answer there uses PHP and it doesn't address the fact that the CSS is injected dynamically by an ASP.Net Theme. 回答1: I think I have a quick and dirty solution. The trick is to examine the controls within the page header (for example in the PreRender phase), find the links

Firefox: How to test prefers-color-scheme?

十年热恋 提交于 2019-12-14 03:39:56
问题 In Firefox 67, one can use media queries to detect user preference on light or dark theme. In my version of Firefox (under Ubuntu), it seems that my preference is light theme. That is, the following CSS gives a blue background: @media (prefers-color-scheme: light) { :root {} body { background-color: blue; } } How can I change my Firefox preferences so that prefers-color-scheme: dark evaluates to true? I found an add-on that seems to do the trick, but I must be doing something wrong with my

WebSphere Portal 6.1 default theme deleted

孤者浪人 提交于 2019-12-14 02:49:05
问题 I deleted the chosen default theme in WebSphere Portal 6.1 using the administration pages. Now the portal is themeless. More importantly, the theme selection page in the administration section can no longer be displayed. How can I set the default theme "externally" (i.e. manually, without the administration pages)? 回答1: You will need to correct this with xmlaccess. I suggest you export from a working portal the theme configuration back into your broken portal. 回答2: Chrisr is right. Here is