themes

Android theme won't apply to activity

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:46:24
问题 When I set the background color in the layout everything works perfectly. However, when I try to set the it from a theme it won't work. It seems I'm doing something wrong. Here is the code. Manifest: <activity android:name="com.example.somma.MainActivity" android:label="@string/app_name" android:theme="@style/custom_title_theme" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Drupal main theme template file for any node

梦想的初衷 提交于 2019-12-11 07:37:33
问题 How can I switch to a different theme template file for any node that I want? I understand how to create sub-themes like node-recipes.tpl.php for a node that has a path of "recipes". But what I want to have control of the entire base template like page.tpl.php. Can I use some preprocess function in template.php for this? Right now I have this in my template.php file: function mythemename_preprocess_node(&$vars) { // template name for current node id $suggestions = array('node-'. $vars['nid'])

Edit wordpress loop to display thumbnail and excerpt

心已入冬 提交于 2019-12-11 07:32:46
问题 I try to realize a wordpress loop to display the articles on my blog. I'm trying to create a design like this: www.freileben.net My wordpress loop looks like this: .thumbnail { float: left; margin-right: 50px; } #post { margin-top: 120px; padding-top: 15px; } <article id="post"> <div id="thumbnail"> <?php if ( function_exists( 'has_post_thumbnail') && has_post_thumbnail() ) { the_post_thumbnail(array(350,220), array( "class"=>"thumbnail")); } ?> </div> <h2><?php the_title(); ?></h2> <div

adding user defaults to dark mode

北战南征 提交于 2019-12-11 07:25:45
问题 This is a continuation of an earlier post. What I was wondering was how to add the user defaults for the dark mode throughout the app. Please do not pay attention for the code that says UserDefaults in my last post, I was following a tutorial and just kind of copied what he did, not knowing anything at all about User Defaults. The whole dark mode works beautifully throughout the app. I just need to know how to do all the user defaults. If you have any questions feel free to ask. The code

global CSS theming combination with component specific local stylesheets

大城市里の小女人 提交于 2019-12-11 06:52:18
问题 I'm creating a moduler html/js application with self contained UI components. Each of my UI component may have its own template file (structure), js files (behavior) and css files (presentation). Now I would like these components to have a 'default' presentation with an own local css file This is not a problem, and I can define the default styling on the component 'local' css But in addition I need global theming too, theme css defines styles for the 'whole app' If an user applies a theme,

Error occures when deploying theme to liferay portal. “No theme found for specified theme id .”

半世苍凉 提交于 2019-12-11 06:30:03
问题 I've create sample theme, i.e. custom.css according to liferay tutorial, and don't know why my theme is not deployed, in the log file is the next content: "No theme found for specified theme id . Returning the default theme." And in the themes in "Manage->Page->Look and Feel" there is no my theme 回答1: This warning messages will be displayed when you have already applied a theme to the site(Community) but That theme is now undeployed currently. This can happen due to the recent changes that

Cursor color in Eclipse 3.5/Zend Studio 7 on Mac OS X

蓝咒 提交于 2019-12-11 06:25:26
问题 Does any of you have a clue on how to change the cursor color in Zend Studio 7.0 on Mac OS X? I am asking because I really fancy dark colored themes. After a few hours I managed to port my favorite theme from TextMate.app. However my cursor is still black, which is somehow troublesome. As you can see here - http://twitpic.com/f7ywc - the cursor becomes pretty invisible, right? Please help me out here. Btw - anyone interested in the theme? All the best 回答1: I love TextMate and its twilight

sass multiple themes in angular

廉价感情. 提交于 2019-12-11 05:49:19
问题 Let's say I have two themes (light & dark) in an angular app > 2, and a toggle button which is already configured to add the theme class to the body tag variables.scss $themes: ( light: ( backgroundColor: #fff, textColor: #408bbd, borderColor: #254fe5, ), dark: ( backgroundColor: #222, textColor: #ddd, borderColor: #2e4dd2, ), ); I tried different approaches I found (here and here), but none worked. I also tried the simplest approach about.component.scss .theme-dark .page-title{ color: white;

How to add css and js files on node pages independent of the theme?

走远了吗. 提交于 2019-12-11 05:21:36
问题 I am using display suite to display a full node of type 'Article'. I want to add some css and js on the page containing the article node, though the adding of these can't be dependent on the themeing. So I cannot use the template.php file How would I be able to do this ? 回答1: Create a new module and put it in: /sites/all/modules/custom The module structure and files would look like this: ahelper/ ahelper/css/article_node.css ahelper/js/article_node.js ahelper/ahelper.info ahelper/ahelper

How to set the theme of an AlertDialog

☆樱花仙子☆ 提交于 2019-12-11 05:19:41
问题 How do I set the theme of an alert to one of the standard Android themes? I want to use Holo Dark, since the popup defaults to Holo Light. My code: AlertDialog.Builder confirm = new AlertDialog.Builder(this); confirm.setTitle("Confirm"); confirm.setMessage("Confirm and set delay?"); confirm.setCancelable(false); confirm.setPositiveButton("Yes", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { startDelay(); } }); confirm.setNegativeButton("No", new