themes

How to set default WPF Window Style in app.xaml?

给你一囗甜甜゛ 提交于 2020-01-26 08:46:24
问题 I am trying to set the default Style for every window in my WPF Windows application in my app.xaml. So far i have this in app.xaml: <Application.Resources> <ResourceDictionary> <Style x:Key="WindowStyle" TargetType="{x:Type Window}"> <Setter Property="Background" Value="Blue" /> </Style> </ResourceDictionary> </Application.Resources> I can get the window to appear with this style when running the app (but not is VS designer) by specifically telling the window to use this style via: Style="

ExtJS 5 Custom Theme Testing

岁酱吖の 提交于 2020-01-25 23:03:12
问题 I recently started to create custom theme for ExtJS 5 by Sencha. Following http://docs.sencha.com/extjs/5.0.0/core_concepts/theming.html I managed to create ThemeDemoApp, inherit ext-theme-neptune , change $base-color to green and refresh/rebuild ThemeDemoApp with my-custom-theme . All ok. My problem is, ThemeDemoApp is quite poor for testing a custom theme. A panel, tab, button and a modal window. That's it? After bit of googling I bumped into http://dev.sencha.com/ext/5.0.0/examples/themes

Add product to basket via Javascript (jQuery) in Prestashop 1.7.5.0

懵懂的女人 提交于 2020-01-24 22:45:08
问题 I'm creating a theme for prestashop 1.7 and I try to create an ajax call from javascript (jQuery) that adds the product with a specific name to the shoppingbasket. (I read through documentation, looked at modules, googled for hours, but no luck). So basically: <button id="buyProduct" data-productname="myProduct">Buy Product</button> $('#buyProduct).click(function(){ var productname = $(this).data('productname'); // Do Prestashop Magic }); 回答1: Add products by name is bad idea. You need id

how to display recently viewed products list on product details page - magento

余生颓废 提交于 2020-01-24 12:49:09
问题 I have used mobileshoppe theme for magento and trying to display recently viewed product list at product details page but some how its not working... Added code below at catalog.xml <catalog_product_view translate="label"> <reference name="content"> <block type="reports/product_viewed" name="product.recently.viewed" as="product_recently_viewed" template="reports/product_viewed.phtml"/> </reference> </catalog_product_view> and below code at app\design\frontend\default\mobileshoppe\template

Loading css dynamically in ASP.NET

跟風遠走 提交于 2020-01-23 09:45:13
问题 I am loading a css in my master page ... <link rel="stylesheet" href="css/mystyles.css" title="styles" type="text/css" /> Now I want to load this dynamically according to a web.config key. Is there a better/ standard way of doing this, or is my idea the standard way? Thanks 回答1: Option 1: You can add runat="server" attribute in your css link and set href value from code behind file where you can dynamically set it. Option 2: HtmlLink link = new HtmlLink(); link.Attributes["href"] = filename;

popupMenuStyle doesn't work when I change parent=“@style/Theme.AppCompat.Light.DarkActionBar”>

瘦欲@ 提交于 2020-01-23 07:14:27
问题 When I change my theme styles <style name="Theme.mystyle" parent="@style/Theme.AppCompat.Light"> to <style name="Theme.mystyle" parent="@style/Theme.AppCompat.Light.DarkActionBar"> Not working at all. <style name="PopupMenu.mystyle" parent="@style/Widget.AppCompat.Light.PopupMenu"> <item name="android:textStyle">bold</item> <item name="android:popupBackground">@drawable/menu_dropdown_panel</item> </style> 回答1: Check this generator to get working styles: http://jgilfelt.github.com/android

How to access the theming Fonts and Colors on GTK/Gnome

谁说胖子不能爱 提交于 2020-01-23 03:31:07
问题 Lets say i want to write a special text editor widget. How can i get the default themed colors for texts, selected text and background and which are the users default fonts? I see that GNOME does define 5 special system fonts and default sizes for this purpose in the GNOME Appearance Configuration dialog, but i haven't found a single word in the GTK documentation how to access them (and the GTK mailing list is a joke:-( ). Windows and Cocoa both give me dozens of system values. I found the

Styling the Actionbarsherlock tabs

烈酒焚心 提交于 2020-01-22 10:02:15
问题 So I'm trying to style the tabs of my Actionbar, which I've implemented using the ActionBarSherlock library. This is my code: <style name="Theme.AndroidDevelopers" parent="Theme.Sherlock.Light.ForceOverflow"> <item name="actionBarTabStyle">@style/CustomActionBarStyle</item> <item name="android:actionBarTabStyle">@style/CustomActionBarStyle</item> <style name="CustomActionBarStyle" parent="Widget.Sherlock.Light.ActionBar.TabBar"> <item name="android:background">@drawable/actionbar_tab_bg</item

Cannot resolve symbol 'Theme.AppCompat.Light.DarkActionBar' in styles.xml

时光怂恿深爱的人放手 提交于 2020-01-22 05:13:06
问题 Theme.AppCompat.Light.DarkActionBar is not compiling in styles.xml. I have added compile 'com.android.support:appcompat-v7:25.1.0' in app module's build.gradle . I have searched for solution in google. A lot of them are about changing the classpath in Project's build.gradle .Still its showing the same error. build.gradle dependencies { compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:design:25.1.0' compile 'com.android.support:support-annotations:25.1.0' compile

java.lang.RuntimeException Theme.Sherlock

天大地大妈咪最大 提交于 2020-01-21 11:17:08
问题 I have put an update on google play and see this error : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jim2/com.jim2.SettingWidgetActivity}: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831) at android.app.ActivityThread.access