themes

Get Wordpress Category from Single Post

送分小仙女□ 提交于 2020-08-21 05:47:20
问题 I'm finishing up a WP theme, and I'm on the single.php template. I'm having some issues because I need to access the parent category that a post is in in order to display certain images and XML content. Here is an example of what I'm talking about. The following is the end url of a single post: /andrew/leaf-art-2/ /andrew/ is the category, and leaf-art-2 is the single post. When I am on the single post, I am having trouble getting single_cat_title(); to return the category that the current

Alert dialog buttons are too close

江枫思渺然 提交于 2020-07-08 08:10:34
问题 I see this thing with Alert dialog's buttons touching (there is no space between them). This happens regardless of the theme being used.. Code: builder.setTitle(R.string.sign_in_title); builder.setCancelable(false) .setPositiveButton(R.string.sign_in, (dialog, id) -> { //Todo }) .setNegativeButton(R.string.cancel, (dialog, id) -> dialog.cancel()); builder.create().show(); App theme inherits: <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> I tried to build a minimum

Alert dialog buttons are too close

◇◆丶佛笑我妖孽 提交于 2020-07-08 08:10:11
问题 I see this thing with Alert dialog's buttons touching (there is no space between them). This happens regardless of the theme being used.. Code: builder.setTitle(R.string.sign_in_title); builder.setCancelable(false) .setPositiveButton(R.string.sign_in, (dialog, id) -> { //Todo }) .setNegativeButton(R.string.cancel, (dialog, id) -> dialog.cancel()); builder.create().show(); App theme inherits: <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> I tried to build a minimum

Alert dialog buttons are too close

喜夏-厌秋 提交于 2020-07-08 08:09:25
问题 I see this thing with Alert dialog's buttons touching (there is no space between them). This happens regardless of the theme being used.. Code: builder.setTitle(R.string.sign_in_title); builder.setCancelable(false) .setPositiveButton(R.string.sign_in, (dialog, id) -> { //Todo }) .setNegativeButton(R.string.cancel, (dialog, id) -> dialog.cancel()); builder.create().show(); App theme inherits: <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> I tried to build a minimum

VS Code : how to use a semantic token in color theme?

我与影子孤独终老i 提交于 2020-06-28 03:55:18
问题 I try to update a color theme I made (simple focus) for VS Code, but I never found any guide for theme creators on how to use the new semantic tokens... I have set "semanticHighlighting" : true in my theme For example I want to color classes, and there are specific textMate scopes for class definition ( entity.name.type.class.js ) and creation ( entity.name.type.js ), but when using a class otherwise – like MyClass.props = {} – the only scope is a generic variable.other.object.js which I don

MaterialCardview requires Theme.AppCompat

点点圈 提交于 2020-06-13 21:45:53
问题 I'm trying to test my skills on new Google Material components. But for now I am encountering a problem with MaterialCardView The building process tells me The style on this component requires your app theme to be Theme.AppCompat [..] at com.google.android.material.card.MaterialCardView.<init> With this clue I added style="@style/Theme.AppCompat" & android:theme="@style/Theme.AppCompat" to the MaterialCardView and also to my Activity in the manifest. I tried also to change my Acitivity to

How can I switch themes in Visual Studio 2012

ぃ、小莉子 提交于 2020-06-06 08:40:06
问题 The Visual Studio 2012 offers two themes, Light and Dark. I want to switch the theme to Dark, but I'm not able to find any menus or options to do that. I found out a way importing settings from: Microsoft Visual Studio 11.0\Common7\IDE\ FontsAndColorsThemes\1ded0138-47ce-435e-84ef-9ec1f439b749.vssettings and the code editor is now in Dark theme but other windows are still in Light theme such as the Solution Explorer, Toolbox, and Toolbars. What should I do to switch themes? 回答1: In Visual

How to get the current Linux theme with Python?

六月ゝ 毕业季﹏ 提交于 2020-05-29 11:27:06
问题 I need to get the current Icon Theme in the system. The problem is that there are a lot of environments as GNOME, XFCE, MATE... Please, how could I get the current Icon Theme ? I'm thinking that it'll be with Gtk.IconTheme.get_default() , but I didn't get a good result. Thanks in advance! 回答1: Unfortunately, there is no universal solution for all systems. You will need to use different approaches depending on the environment, and then most likely include a switch depending on the present

When using Theme.MaterialComponents.Light.NoActionBar style, setting Button Background has no effect

为君一笑 提交于 2020-05-24 21:19:33
问题 In order to use Chip and ChipGroup, I set Application style extends Theme.MaterialComponents.Light.NoActionBar int manifests.xml, then I set Button "android:background" attr, but it does not effect! why? and what can I do? This is my style: <style name="AppBaseTheme" parent="Theme.MaterialComponents.Light.NoActionBar"> <item name="colorPrimary">@color/primary_material_light</item> <item name="colorPrimaryDark">@color/header_color</item> <item name="actionBarSize">48dp</item> <item name=

Change styles based on dark or light mode

六月ゝ 毕业季﹏ 提交于 2020-05-24 03:29:29
问题 I want to have a dark and a light theme on my Vue app. I can create dark.scss file and change classes styles and use !important property to override styles defined in components. Or I can use props in my components and change className with v-if based on the theme. e.g. set class to className__light when theme is light otherwise set to className__dark . which one is better in all situations like performance or time needed to do it? 回答1: Well i would not do it with classes. I would create CSS