问题标签 [theming]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
858 浏览

php - 显示模块的 Joomla 类别页面条件

我希望仅当视图中存在特定类别时,才能在页面上显示指向我网站上特定文章的链接。

例如:我有一个名为 Fbrand 的类别。当有人在类别页面上(查看该类别的类别博客)时,我不想以广告形式在自定义 HTML 模块中的页面上显示文章“FBrand 商店列表”。

我不知道如何通过名称或 slug 检查类别的条件,例如在 wordpress 中:if( is_category( 'FBrand' ) ):这是因为类别的 id 在生产环境中可能不同。

0 投票
2 回答
5769 浏览

c# - 在运行时更改 CSS 文件(主题)(ASP.NET)

我想更改在我的 ASP.NET Web 应用程序运行时使用的 CSS 文件。

假设我有 2 个 CSS 文件,red.css并且blue.css.

我尝试了以下方法:

在我的母版页中,我有以下链接:

<link rel="Stylesheet" ID="Styles" runat="server"/>

在母版页 Page_Load 中:

Styles.Href = Global.CSSPath;

全球.asax:

public static string CSSPath = "red.css";(假设它在同一个文件夹中)

这种方法有效。当然,我可以轻松地实现一些功能来更改 CSSPath 的值并使其成为 blue.css 或其他任何东西 - 现在我想知道这是否只影响一个用户或使用我的 Web 应用程序的每个人。

如果它只影响一个用户:太好了,谢谢!如果没有:我应该怎么做才能在运行时为特定用户/会话更改主题?

谢谢,

丹尼斯

0 投票
3 回答
4931 浏览

symfony - Symfony 2 主题化一个 textarea 小部件

我在为 textarea 设置主题时遇到了一些麻烦。

我创建了一个具有以下主题的单独主题文件:

第一个块主题有效(text_widget),但第二个导致页面根本不加载。如果我将块线更改为

但随后 twig 呈现一个普通的文本字段。根据https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form我应该可以使用 textarea_widget。

有任何想法吗?

0 投票
1 回答
1602 浏览

qt - GTK3: Getting a style's class property

I'm trying to get the text color of a class of a GTK style. I have a GtkStyleContext with the widget path and the classes that I want to get their properties.

I used gtk_style_context_lookup_color and it gets the normal text color but not the text color in gnome-panel-menu-bar or unity-panel.

I tried using GtkCssProvider but it gets the generic style without the classes I added.

I'm using it in a Qt application to get a native GTK3 look and feel. This code is working fine in a GTK application.

Thanks!

0 投票
2 回答
363 浏览

jquery - jQuery Ui 主题 - 我为什么要选择它还是不应该选择它?

所以我的目标是为一个已经存在的应用程序主题/创建一个新的皮肤。

基本上我想抛弃旧的设计并想出一堆新的可能的设计 - jQuery 是轻松设计和呈现一堆新设计的好方法吗?有什么选择?

好的:

  • themeroller 似乎正是我想要的,它为页面添加了一个漂亮的布局,而无需花费大量时间。
  • 基本上你可以交换一些已经预制的皮肤,而无需从头开始创建自己的皮肤

然而,一些缺点似乎是

坏的

  • 将繁重的布局应用于页面时发生的闪烁。但是我可能忽略了一些东西。
  • 整个css和js看起来相当大
  • 我想知道使所有 jQuery 符合所需的时间是否值得长期使用,或者是否有更简单的方法

与adv略有关系。和不利。jQuery

我们在 firefox 3.6.2 上使用 jQuery 1.8.3

已编辑: 对于无样式内容的闪烁似乎没有聪明而简单的解决方案 - 但是当限制页面上使用的 javascript 并从一个良好的样式开始时,您可能可以忍受它。themeroller 的优点是一旦集成,就可以轻松地将不同的外观应用到应用程序中

0 投票
4 回答
39868 浏览

javascript - JQuery .addclass 到找到文本的表元素

我正在对一些报告表进行主题化,并且无权访问模板。

到目前为止,我有这段代码,它最终将“my-class”添加到报告表中的每个 TR 元素中。但是,我只想将类添加到找到文本的表格行 TR 中。我想我需要更多的代码来做到这一点。以下是我迄今为止尝试过的一些事情:

我也试过:

...但这也不起作用。

0 投票
0 回答
555 浏览

wpf - I can't get my custom AvalonDock theme to work, anyone does?

I'm new to AvalonDock, but I see it's relatively easy to use. I'm planning to use it in a custom app for my company. We have a certain look'n'feel so I want to get the control to use the same colors.

I am using the ExpressionDark theme as a base, so basically what I did was to copy the AvalonDock.Themes and rename it, and change the name of the ExpressionDark theme to mine but when I compile and try to use it in my app, it says there is a missing resource key (PaneHeaderCommandStyle). If I remove my theme ResDict, it works again.

I don't understand what's wrong, since I haven't changed anything but the project and theme name. Is there anything I could be missing?

Please help...

0 投票
4 回答
8444 浏览

javascript - JQuery 添加类,需要更多帮助

我有这段代码来解析 URL 并向<body>我的 HTML 页面的标签添加一个类。

我遇到的问题是它删除了已经存在的身体类。相反,我想附加到任何存在的主体类而不是覆盖。

0 投票
2 回答
528 浏览

magento - Magento中我无法摆脱的顶部导航链接

我正在为现有的 Magento 安装开发一个新主题,并且我有一个流氓链接。最后一个人显然决定硬编码一个指向他在顶部导航中使用的 AW 博客扩展的链接。见这里:derm2go.com - 链接是“文章”。我正在摆脱 AW Blog 以支持集成的 wordpress 安装,但是当我卸载 AW Blog 时,网站中断(导航消失后的所有内容)并且我在日志中收到此错误:

2011-11-19T08:56:19+00:00 ERR (3): Warning: include() [function.include]: 未能打开“Mage/Blog/Helper/Data.php”以包含(include_path='/chroot /home/dermtwog/derm2go.com/html/app/code/local:/chroot/home/dermtwog/derm2go.com/html/app/code/community:/chroot/home/dermtwog/derm2go.com/html/app /code/core:/chroot/home/dermtwog/derm2go.com/html/lib:.:/usr/share/pear') 在 /chroot/home/dermtwog/derm2go.com/html/lib/Varien/Autoload。第 93 行的 php

我到处搜索,我认为这可能会影响导航菜单,而且我不知道链接来自哪里 - 它不在 CMS/静态块中,也不在任何默认模板文件中服务器(我删除并重新安装了所有这些),即使我更改模板也会显示,所以它可能不在子主题中。

有没有人知道它可能隐藏在其他文件中?我假设最后一个人以某种方式进行了快速而肮脏的黑客攻击 - 并且可能弄乱了核心文件?真的宁愿不必完全重新安装。

0 投票
1 回答
100 浏览

plone - 如何在 Plone 4 中减少全局导航栏的深度

在 Plone 4.1.2 中使用 sunburst 主题,在自定义 CSS 中需要覆盖哪些 CSS 元素和属性以减少全局导航栏的深度?默认为两行文本,但只需要一行文本。