Home
last modified time | relevance | path

Searched refs:theme (Results 1 – 25 of 125) sorted by relevance

12345

/external/wayland/cursor/
Dwayland-cursor.c144 struct wl_cursor_theme *theme; member
164 struct wl_cursor_theme *theme = image->theme; in wl_cursor_image_get_buffer() local
168 wl_shm_pool_create_buffer(theme->pool->pool, in wl_cursor_image_get_buffer()
206 struct wl_cursor_theme *theme) in wl_cursor_create_from_data() argument
229 image->theme = theme; in wl_cursor_create_from_data()
238 image->offset = shm_pool_allocate(theme->pool, size); in wl_cursor_create_from_data()
243 memcpy(theme->pool->data + image->offset, in wl_cursor_create_from_data()
261 load_default_theme(struct wl_cursor_theme *theme) in load_default_theme() argument
265 free(theme->name); in load_default_theme()
266 theme->name = strdup("default"); in load_default_theme()
[all …]
Dxcursor.c655 _XcursorBuildThemeDir (const char *dir, const char *theme) in _XcursorBuildThemeDir() argument
666 if (!dir || !theme) in _XcursorBuildThemeDir()
675 tcolon = strchr (theme, ':'); in _XcursorBuildThemeDir()
677 tcolon = theme + strlen (theme); in _XcursorBuildThemeDir()
679 themelen = tcolon - theme; in _XcursorBuildThemeDir()
707 _XcursorAddPathElt (full, theme, themelen); in _XcursorBuildThemeDir()
791 XcursorScanTheme (const char *theme, const char *name) in XcursorScanTheme() argument
800 if (!theme || !name) in XcursorScanTheme()
810 dir = _XcursorBuildThemeDir (path, theme); in XcursorScanTheme()
842 XcursorLibraryLoadImages (const char *file, const char *theme, int size) in XcursorLibraryLoadImages() argument
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowThemeTest.java82 Resources.Theme theme = resources.newTheme(); in forStylesWithImplicitParents_shouldInheritValuesNotDefinedInChild() local
83 theme.applyStyle(R.style.Theme_Robolectric_EmptyParent, true); in forStylesWithImplicitParents_shouldInheritValuesNotDefinedInChild()
84 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.string1}).hasValue(0)).isFalse(); in forStylesWithImplicitParents_shouldInheritValuesNotDefinedInChild()
88 Resources.Theme theme = resources.newTheme(); in shouldApplyParentStylesFromAttrs() local
89 theme.applyStyle(R.style.SimpleParent, true); in shouldApplyParentStylesFromAttrs()
90 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in shouldApplyParentStylesFromAttrs()
95 Resources.Theme theme = resources.newTheme(); in applyStyle_shouldOverrideParentAttrs() local
96 theme.applyStyle(R.style.SimpleChildWithOverride, true); in applyStyle_shouldOverrideParentAttrs()
97 assertThat(theme.obtainStyledAttributes(new int[] {R.attr.parent_string}).getString(0)) in applyStyle_shouldOverrideParentAttrs()
102 Resources.Theme theme = resources.newTheme(); in applyStyle_shouldOverrideImplicitParentAttrs() local
[all …]
DShadowResourcesTest.java84 Resources.Theme theme = resources.newTheme(); in themeResolveAttribute_shouldSupportDereferenceResource() local
85 theme.applyStyle(R.style.MyBlackTheme, false); in themeResolveAttribute_shouldSupportDereferenceResource()
87 theme.resolveAttribute(android.R.attr.windowBackground, out, true); in themeResolveAttribute_shouldSupportDereferenceResource()
99 Resources.Theme theme = resources.newTheme(); in themeResolveAttribute_shouldSupportNotDereferencingResource() local
100 theme.applyStyle(R.style.MyBlackTheme, false); in themeResolveAttribute_shouldSupportNotDereferencingResource()
102 theme.resolveAttribute(android.R.attr.windowBackground, out, false); in themeResolveAttribute_shouldSupportNotDereferencingResource()
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DThemeHelper.java77 final String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME); in isLightTheme() local
78 return isLightTheme(theme, def); in isLightTheme()
90 public static boolean isLightTheme(String theme, boolean def) { in isLightTheme() argument
91 if (THEME_HOLO_LIGHT.equals(theme) in isLightTheme()
92 || THEME_MATERIAL_LIGHT.equals(theme) in isLightTheme()
93 || THEME_GLIF_LIGHT.equals(theme) in isLightTheme()
94 || THEME_GLIF_V2_LIGHT.equals(theme) in isLightTheme()
95 || THEME_GLIF_V3_LIGHT.equals(theme)) { in isLightTheme()
97 } else if (THEME_HOLO.equals(theme) in isLightTheme()
98 || THEME_MATERIAL.equals(theme) in isLightTheme()
[all …]
DThemeResolver.java98 public int resolve(@Nullable String theme) { in resolve() argument
99 return resolve(theme, /* suppressDayNight= */ false); in resolve()
109 public int resolve(@Nullable String theme, boolean suppressDayNight) { in resolve() argument
111 useDayNight && !suppressDayNight ? getDayNightThemeRes(theme) : getThemeRes(theme); in resolve()
114 theme = defaultThemeSupplier.getTheme(); in resolve()
116 useDayNight && !suppressDayNight ? getDayNightThemeRes(theme) : getThemeRes(theme); in resolve()
123 if (oldestSupportedTheme != null && compareThemes(theme, oldestSupportedTheme) < 0) { in resolve()
141 private static int getDayNightThemeRes(@Nullable String theme) { in getDayNightThemeRes() argument
142 if (theme != null) { in getDayNightThemeRes()
143 switch (theme) { in getDayNightThemeRes()
[all …]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DStyleResolver.java12 private final Style theme; field in StyleResolver
17 Style theme, ResName myResName, ResTable_config config) { in StyleResolver() argument
20 this.theme = theme; in StyleResolver()
47 if (theme != null) { in getAttrValue()
48 AttributeResource value = theme.getAttrValue(resName); in getAttrValue()
98 .append(" with ").append(theme); in getParent()
110 .append(" with ").append(theme); in getParent()
128 if (!dereferencing && theme != null) { in dereferenceResName()
129 AttributeResource value = theme.getAttrValue(styleRef); in dereferenceResName()
156 return ((theme == null && other.theme == null) || (theme != null && theme.equals(other.theme))) in equals()
[all …]
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DButtonItem.java42 private int theme = R.style.SudButtonItem; field in ButtonItem
56 theme = a.getResourceId(R.styleable.SudButtonItem_android_theme, R.style.SudButtonItem); in ButtonItem()
79 public void setTheme(int theme) { in setTheme() argument
80 this.theme = theme; in setTheme()
86 return theme; in getTheme()
123 if (theme != 0) { in createButton()
124 context = new ContextThemeWrapper(context, theme); in createButton()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DFooterButton.java50 private int theme; field in FooterButton
63 theme = a.getResourceId(R.styleable.SucFooterButton_android_theme, /* defValue= */ 0); in FooterButton()
80 @StyleRes int theme) { in FooterButton() argument
84 this.theme = theme; in FooterButton()
124 return theme; in getTheme()
317 private int theme = 0; field in FooterButton.Builder
348 public Builder setTheme(@StyleRes int theme) { in setTheme() argument
349 this.theme = theme; in setTheme()
354 return new FooterButton(text, onClickListener, buttonType, theme); in build()
/external/python/cpython3/Lib/idlelib/
Dcolorizer.py41 theme = idleConf.CurrentTheme()
42 normal_colors = idleConf.GetHighlight(theme, 'normal')
43 cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
44 select_colors = idleConf.GetHighlight(theme, 'hilite')
116 theme = idleConf.CurrentTheme()
118 "COMMENT": idleConf.GetHighlight(theme, "comment"),
119 "KEYWORD": idleConf.GetHighlight(theme, "keyword"),
120 "BUILTIN": idleConf.GetHighlight(theme, "builtin"),
121 "STRING": idleConf.GetHighlight(theme, "string"),
122 "DEFINITION": idleConf.GetHighlight(theme, "definition"),
[all …]
Dconfig.py286 def GetHighlight(self, theme, element, fgBg=None): argument
295 if self.defaultCfg['highlight'].has_section(theme):
296 themeDict = self.GetThemeDict('default', theme)
298 themeDict = self.GetThemeDict('user', theme)
334 theme ={'normal-foreground':'#000000',
366 for element in theme:
373 (element, themeName, theme[element]))
375 theme[element] = cfgParser.Get(
376 themeName, element, default=theme[element])
377 return theme
/external/setupdesign/main/src/com/google/android/setupdesign/view/
DNavigationBar.java62 int theme = attributes.getResourceId(navBarTheme, 0); in getNavbarTheme() local
63 if (theme == 0) { in getNavbarTheme()
71 theme = isDarkBg ? R.style.SudNavBarThemeDark : R.style.SudNavBarThemeLight; in getNavbarTheme()
74 return theme; in getNavbarTheme()
78 final int theme = getNavbarTheme(context); in getThemedContext() local
79 return new ContextThemeWrapper(context, theme); in getThemedContext()
/external/python/cpython2/Lib/idlelib/
DconfigHandler.py282 def GetHighlight(self, theme, element, fgBg=None): argument
291 if self.defaultCfg['highlight'].has_section(theme):
292 themeDict = self.GetThemeDict('default', theme)
294 themeDict = self.GetThemeDict('user', theme)
330 theme ={'normal-foreground':'#000000',
359 for element in theme:
366 (element, themeName, theme[element]))
371 theme[element] = cfgParser.Get(
372 themeName, element, default=theme[element])
373 return theme
[all …]
DColorDelegator.py65 theme = idleConf.CurrentTheme()
67 "COMMENT": idleConf.GetHighlight(theme, "comment"),
68 "KEYWORD": idleConf.GetHighlight(theme, "keyword"),
69 "BUILTIN": idleConf.GetHighlight(theme, "builtin"),
70 "STRING": idleConf.GetHighlight(theme, "string"),
71 "DEFINITION": idleConf.GetHighlight(theme, "definition"),
74 "ERROR": idleConf.GetHighlight(theme, "error"),
76 "hit": idleConf.GetHighlight(theme, "hit"),
/external/iperf3/docs/_esnet/
DREADME.rst7 provides the overrides and customizations to the base theme.
10 .. _sphinx-bootstrap-theme: https://github.com/ryan-roemer/sphinx-bootstrap-theme
15 1. Install Sphinx and sphinx-bootstrap-theme. See the instructions below for
29 theme we need to make some changes. Make the following changes to conf.py::
71 2. sudo /usr/local/bin/pip install sphinx sphinx-bootstrap-theme
79 4. pip install sphinx sphinx-bootstrap-theme # make sure this is
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DAttributeResolution.java64 public static boolean ResolveAttrs(ResTableTheme theme, int defStyleAttr, in ResolveAttrs() argument
69 ALOGI("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, in ResolveAttrs()
73 final ResTable res = theme.getResTable(); in ResolveAttrs()
83 if (theme.GetAttribute(defStyleAttr, valueRef, defStyleBagTypeSetFlags) >= 0) { in ResolveAttrs()
149 int newBlock = theme.resolveAttributeReference(valueRef, block, in ResolveAttrs()
162 int newBlock = theme.GetAttribute(curIdent, valueRef, typeSetFlagsRef); in ResolveAttrs()
226 …public static void ApplyStyle(ResTableTheme theme, ResXMLParser xmlParser, int defStyleAttr, int d… in ApplyStyle() argument
230 theme, defStyleAttr, defStyleRes, xmlParser); in ApplyStyle()
233 final ResTable res = theme.getResTable(); in ApplyStyle()
242 if (theme.GetAttribute(defStyleAttr, value, defStyleBagTypeSetFlags) >= 0) { in ApplyStyle()
[all …]
DAttributeResolution9.java89 public static boolean ResolveAttrs(Theme theme, int def_style_attr, in ResolveAttrs() argument
94 ALOGI("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, in ResolveAttrs()
98 CppAssetManager2 assetmanager = theme.GetAssetManager(); in ResolveAttrs()
108 … if (theme.GetAttribute(def_style_attr, valueRef, def_style_flags).intValue() != kInvalidCookie) { in ResolveAttrs()
172theme.ResolveAttributeReference(cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
181 ApkAssetsCookie new_cookie = theme.GetAttribute(cur_ident, valueRef, type_set_flagsRef); in ResolveAttrs()
237 public static void ApplyStyle(Theme theme, ResXMLParser xml_parser, int def_style_attr, in ApplyStyle() argument
242 theme, def_style_attr, def_style_resid, xml_parser); in ApplyStyle()
245 CppAssetManager2 assetmanager = theme.GetAssetManager(); in ApplyStyle()
254 if (theme.GetAttribute(def_style_attr, value, def_style_flags).intValue() != kInvalidCookie) { in ApplyStyle()
[all …]
DAttributeResolution10.java93 public static boolean ResolveAttrs(Theme theme, int def_style_attr, in ResolveAttrs() argument
98 ALOGI("APPLY STYLE: theme=0x%p defStyleAttr=0x%x defStyleRes=0x%x", theme, in ResolveAttrs()
102 CppAssetManager2 assetmanager = theme.GetAssetManager(); in ResolveAttrs()
112 … if (theme.GetAttribute(def_style_attr, valueRef, def_style_flags).intValue() != kInvalidCookie) { in ResolveAttrs()
176theme.ResolveAttributeReference(cookie, valueRef, configRef, type_set_flagsRef, residRef); in ResolveAttrs()
185 … ApkAssetsCookie new_cookie = theme.GetAttribute(cur_ident, valueRef, type_set_flagsRef); in ResolveAttrs()
241 public static void ApplyStyle(Theme theme, ResXMLParser xml_parser, int def_style_attr, in ApplyStyle() argument
246 theme, def_style_attr, def_style_resid, xml_parser); in ApplyStyle()
249 CppAssetManager2 assetmanager = theme.GetAssetManager(); in ApplyStyle()
258 … if (theme.GetAttribute(def_style_attr, value, def_style_flags).intValue() != kInvalidCookie) { in ApplyStyle()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDatePickerDialog.java28 int theme, in __constructor__() argument
40 ClassParameter.from(int.class, theme), in __constructor__()
50 int theme, in __constructor__() argument
64 ClassParameter.from(int.class, theme), in __constructor__()
/external/python/cpython2/Lib/lib-tk/test/test_ttk/
Dtest_style.py74 for theme in self.style.theme_names():
75 if theme != curr_theme:
76 new_theme = theme
77 self.style.theme_use(theme)
/external/python/cpython3/Lib/tkinter/test/test_ttk/
Dtest_style.py74 for theme in self.style.theme_names():
75 if theme != curr_theme:
76 new_theme = theme
77 self.style.theme_use(theme)
/external/pdfium/xfa/fwl/
Dcfwl_form.cpp181 IFWL_ThemeProvider* theme = GetAvailableTheme(); in Layout() local
182 m_fCXBorder = theme ? theme->GetCXBorderSize() : 0.0f; in Layout()
183 m_fCYBorder = theme ? theme->GetCYBorderSize() : 0.0f; in Layout()
Dcfwl_edit.cpp98 IFWL_ThemeProvider* theme = GetAvailableTheme(); in GetWidgetRect() local
99 float scrollbarWidth = theme ? theme->GetScrollBarWidth() : 0.0f; in GetWidgetRect()
626 IFWL_ThemeProvider* theme = GetAvailableTheme(); in UpdateEditParams() local
630 if (!theme) { in UpdateEditParams()
634 m_fFontSize = theme->GetFontSize(&part); in UpdateEditParams()
636 RetainPtr<CFGAS_GEFont> pFont = theme->GetFont(&part); in UpdateEditParams()
641 m_EdtEngine.SetFontColor(theme->GetTextColor(&part)); in UpdateEditParams()
643 m_EdtEngine.SetLineSpace(theme->GetLineHeight(&part)); in UpdateEditParams()
646 theme->GetLineHeight(&part)); in UpdateEditParams()
706 IFWL_ThemeProvider* theme = GetAvailableTheme(); in UpdateVAlignment() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/docs/_themes/llvm-theme/
Dtheme.conf1 [theme]
3 stylesheet = llvm-theme.css
/external/llvm/docs/_themes/llvm-theme/
Dtheme.conf1 [theme]
3 stylesheet = llvm-theme.css

12345