themes

Drupal theme functions workflow in module

邮差的信 提交于 2019-12-22 01:34:37
问题 I am a bit newbie in Drupal theming and I can't get one detail in Forum modules theming. forum.module file contains forum_theme function that controls how this module is themed and has this line function forum_theme() { ...... 'forum_list' => array( 'template' => 'forum-list', 'arguments' => array('forums' => NULL, 'parents' => NULL, 'tid' => NULL), ), I also see forum-list.tpl.php file in forum directory, so I start to wonder when this file is called and where it gets data from, but all I

How can I disable the use of bold fonts when editing code in Eclipse?

北战南征 提交于 2019-12-22 01:27:00
问题 I don't want Eclipse to display any keyword in bold. I've browsed through a lot of options in the Preferences window, but could not find a way to do this. Is it possible? 回答1: This depends on the type of file you're editing. For example, in Java: Window menu -> Preferences -> Jave -> Editor -> Syntax Colouring -> Java (in the "Element" box) -> Keywords excluding 'return' -> Uncheck bold Similarly for "Keyword 'return'". Look at the preview to check everything you want is no longer bold. 来源:

MS Excel do not copy the color theme automatically

扶醉桌前 提交于 2019-12-22 00:54:17
问题 I am using MS Excel 2010 My Company uses a set of standard color scheme / theme for MS Excel 2010 .I gave it a name (companycolor). I have a template contains that color scheme and a macro in it to perform tasks. When I press macro button it makes a copy of activesheet,protect it and email it to intended recipient.Problem is that when macro makes a copy of activesheet into a new workbook it doesn't copy the color scheme / theme that template have, I mean with the my company color scheme

Multi theme support in android app

跟風遠走 提交于 2019-12-22 00:23:20
问题 Did anyone implemented multi theme support for android app? Are there any common practices for this? Thanks for any advice. UPD: The main problem for now is that android's theme engine doesn't support selectors like in CSS. For example if I have two views with "background" attribute there's no way to make theme engine distinguish those ones and set different backgrounds. I can specify different style for each view but this approach lacks flexibility 'cause it's impossible to apply style for

My settings are not saving in wordpress theme options page

我是研究僧i 提交于 2019-12-21 22:34:12
问题 I am trying to create a theme options page based on WordPress's Settings API. When I go to check the options.php page in my browser (ex. http://mysite.com/wordpress/wp-admin/options.php), I see an entry for coolorange_options but it is empty. This happened after I added a url, width and height to the text fields. So far, I have enough code written to get the information and store it to the database, but not to retrieve it for anything. I referenced a tutorial in the php comment at the top of

Theme a custom menu with theme_menu_tree()

∥☆過路亽.° 提交于 2019-12-21 21:21:26
问题 I'm trying to override a custom menu output in a block so that instead of <ul class="menu">...</ul> I can get <select name="menu title">...</select> In Drupal 6, I could use function theme_menu_tree($tree,$menu_name="") {...} but this doesn't work in Drupal 7 with function theme_menu_tree($variables) {...} . I've tried theme_menu_tree__mymenu($variables) {...} with no success. How do I specify a unique menu in Drupal 7? Thanks. 回答1: I had the same problem with overriding and correct naming of

How to load a GTK Sharp theme on MS Windows

半腔热情 提交于 2019-12-21 20:38:44
问题 I'm programming a GTK Sharp (v2.12) application using Xamarin Studio 5.4 on MS Windows. The installed Mono version is 3.2.3 (but I'm using the .Net tool chain to compile, because Xamarin doesn't allow me to compile using the Mono toolchain). The case is that when I run the application from the Xamarin Studio or using Mono, then I have a relatively nice look & feel, but when I run the application using .Net (doing double click on the executable) then the look & feel is horrible. I've tried to

Android Theming Preference Dialog

雨燕双飞 提交于 2019-12-21 20:37:05
问题 I have an application that uses a preference activity to set some user settings. I been trying to figure this out all day. I am trying to theme the alert dialog when an user presses an Edit Text Preference object. A dialog opens up and the user can set the shared preference. The dialog pops up: I want the text green. I want the divider green. The line and cursor green. This is what I have so far. <style name="CustomDialogTheme" parent="@android:style/Theme.Dialog"> <item name="android

Applying PrimeFaces theme only for one JSF page

北战南征 提交于 2019-12-21 20:24:39
问题 We should apply primefaces theme for a jsf page <context-param> <param-name>primefaces.THEME</param-name> <param-value>bluesky</param-value> </context-param> I want to apply for one page this primefaces theme.How to do this? 回答1: If you add it as a context-param, it will be used for all pages. This is what you need to do: 1 - Get the jar of the bluesky theme and extract it to a folder. We'll use these files later. 2 - In the 'resources' folder create a subfolder called "primefaces-bluesky". 3

Delphi: How to remove subclasses in reverse order?

血红的双手。 提交于 2019-12-21 17:56:28
问题 Mike Lischke's TThemeServices subclasses Application.Handle , so that it can receive broadcast notifications from Windows (i.e. WM_THEMECHANGED ) when theming changes. It subclasses the Application object's window: FWindowHandle := Application.Handle; if FWindowHandle <> 0 then begin // If a window handle is given then subclass the window to get notified about theme changes. {$ifdef COMPILER_6_UP} FObjectInstance := Classes.MakeObjectInstance(WindowProc); {$else} FObjectInstance :=