Overriding referenced style attributes

I think you need that line in your theme <item name=”android:checkedTextViewStyle”>@style/ListViewCheckedTextViewRowStyle</item> so it would look like this: <style name=”Theme.Yellowgreen” parent=”android:Theme.Holo.Light.DarkActionBar”> <item name=”android:listChoiceIndicatorMultiple”>@drawable/btn_check_holo_light</item> <item name=”android:checkedTextViewStyle”>@style/ListViewCheckedTextViewRowStyle</item> </style> UPDATE After question update and some additional information form comments we found that the problem was in Context. It’s the same mistake I did in that my question: Android color … Read more

Windows 7 theme for WPF?

WPF comes with the standard Windows themes on all Windows versions. For example, you can have the Aero theme (which Vista and Windows 7 use) on Windows XP with the following steps: Add PresentationFramework.Aero to your application’s references list as a requires Edit your App.xaml from this <Application.Resources> <!– Your stuff here –> </Application.Resources> to … Read more

Where can I download Microsoft’s standard WPF themes from? [closed]

The download links are identical between .NET 3.0 and .NET 3.5–only the online documentation is different. Themes for .NET 3.0 Classic (download) Luna (download) Royale (download) Aero (download) Themes for .NET 3.5 Classic (download) Luna (download) Royale (download) Aero (download) WPF Documentation Samples for .NET 4 and .NET 4.5 Themes (download) (No longer available) Classic … Read more

Angular 2/4 component with dynamic template or templateUrl

You can do it like this: import { Compiler, Component, Injector, VERSION, ViewChild, NgModule, NgModuleRef, ViewContainerRef } from ‘@angular/core’; @Component({ selector: ‘my-app’, template: ` <h1>Hello {{name}}</h1> <ng-container #vc></ng-container> ` }) export class AppComponent { @ViewChild(‘vc’, {read: ViewContainerRef}) vc; name = `Angular! v${VERSION.full}`; constructor(private _compiler: Compiler, private _injector: Injector, private _m: NgModuleRef<any>) { } ngAfterViewInit() { … Read more

How to make changeable themes using CSS and JavaScript

You can set an Id to the link tag and switch the css at runtime. HTML <link type=”text/css” rel=”stylesheet” media=”all” href=”../green.css” id=”theme_css” /> JS document.getElementById(‘buttonID’).onclick = function () { document.getElementById(‘theme_css’).href=”https://stackoverflow.com/questions/8796107/red.css”; }; Quick Demo: $( “#datepicker” ).datepicker(); $(‘button’).button().on(‘click’, function () { let linkHref=”https://code.jquery.com/ui/1.11.4/themes/{THEME}/jquery-ui.css”; if ($(‘#swapTheme’).prop(‘href’).indexOf(‘pepper-grinder’) >= 0) { $(‘#swapTheme’).prop(‘href’, linkHref.replace(‘{THEME}’, ‘black-tie’)); } else { $(‘#swapTheme’).prop(‘href’, linkHref.replace(‘{THEME}’, … Read more