app-themes

Changing app theme without recreating activity

↘锁芯ラ 提交于 2019-12-23 15:21:58
问题 I have a custom theme with Theme.AppCompat.DayNight.NoActionBar as the parent with resources for both day and night modes. In the documentation, there is a method provided to change the theme and unless the current activity is recreated, the theme will only change the next time that activity is launched. Twitter and Pocket on the other hand change the themes without recreating the activity the user is on. How can i achieve this? 回答1: Twitter and Pocket on the other hand change the themes

asp.net 2.0 global themes not working on new windows server 2008

╄→尐↘猪︶ㄣ 提交于 2019-12-21 20:03:23
问题 We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes thanks, Aaron 回答1: From the MSDN, your directory path should read: %windows%\Microsoft.NET\Framework\version\ASP.NETClientFiles\Themes. MSDN on themes. Of

How to make a custom tite bar without changing the AppTheme to CustomTheme?

≡放荡痞女 提交于 2019-12-11 06:51:35
问题 I dont like how the CustomTheme looks and I want to keep the AppTheme. but when I use a customized title bar with AppTheme it crashes telling me I cant combine numerous styles. How can I do that? Thanks! 回答1: First crate your own custom layout for the ActionBar tab_header.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:gravity="center" android:layout_height="match_parent"> <TextView

How to change to text colour of the Cut/Copy/Paste popup menu

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:46:59
问题 I have the following in my styles.xml <style name="dialog_style" parent="Theme.AppCompat.Light.Dialog.Alert"> <item name="colorAccent">#ffaaaa00</item> <item name="android:background">#ff444400</item> <item name="android:textColorPrimary">#ffa25600</item> </style> (The horrible colours are for testing only!) This gives the following What I want is a dark/black background but when I do that, the text is unreadable. Q: How do I change the text colour of "Cut", "Copy"...? tia, Kevin 回答1: You can

Getting an error serving images from App_Themes when using precompilation?

醉酒当歌 提交于 2019-12-08 08:24:40
问题 I have an ASP.NET site with both WebForms and MVC sections to it. When I try to precompile the site, everything works except serving images/css from under App_Themes. If I request something like /foo/App_Themes/themeName/my.png , I get this error: The file '/foo/App_Themes/themeName/my.png.cshtml' is in the special directory 'App_Themes', which is not allowed. I only get this when precompiling, it works fine otherwise. Presumably MVC routing is interfering somehow, but I don't know why or how

asp.net 2.0 global themes not working on new windows server 2008

好久不见. 提交于 2019-12-04 12:40:19
We're migrating our .net 2.0 websites from a Windows 2003 server (32 bit) with IIS6 to a Windows Server 2008 (64 bit) box with IIS7. I can't seem to get the global themes to work. Same content/directory structure as our old servers; local App_Themes work fine. Global Theme path: D:\Inetpub\wwwroot\aspnet_client\system_web\2_0_50727\Themes thanks, Aaron From the MSDN, your directory path should read: %windows%\Microsoft.NET\Framework\version\ASP.NETClientFiles\Themes. MSDN on themes . Of course, there are caveats with this and it appears that your directory could work if certain circumstances

Add url parameter to css file in asp themes folder

假如想象 提交于 2019-12-01 04:23:23
I have written a bit of code that helps with versioning of js files. Essentially it spins around the current script manager and appends the javascript file path with an md5 hash of the file. So <script src="../Javascript/Navigation.js" type="text/javascript"></script> becomes <script src="../Javascript/Navigation.js?md5=70D2B4D1F236C7E340D9152B9E4102C3" type="text/javascript"></script> I think this is a fairly common thing to do (or variants of it). What I am struggling to do is pick up the css files in the app_themes folder and do the same. How do I get in and change the css links? Nariman

Add url parameter to css file in asp themes folder

有些话、适合烂在心里 提交于 2019-12-01 02:31:32
问题 I have written a bit of code that helps with versioning of js files. Essentially it spins around the current script manager and appends the javascript file path with an md5 hash of the file. So <script src="../Javascript/Navigation.js" type="text/javascript"></script> becomes <script src="../Javascript/Navigation.js?md5=70D2B4D1F236C7E340D9152B9E4102C3" type="text/javascript"></script> I think this is a fairly common thing to do (or variants of it). What I am struggling to do is pick up the