Home
last modified time | relevance | path

Searched refs:TextStyle (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/third_party/flutter/flutter/packages/flutter/test/painting/
Dtext_style_test.dart5 import 'dart:ui' as ui show TextStyle, ParagraphStyle;
11 test('TextStyle control test', () {
13 const TextStyle(inherit: false).toString(),
14 equals('TextStyle(inherit: false, <no style specified>)'),
17 const TextStyle(inherit: true).toString(),
18 equals('TextStyle(<all styles inherited>)'),
21 const TextStyle s1 = TextStyle(
33 equals('TextStyle(inherit: true, size: 10.0, weight: 800, height: 123.0x)'),
39 equals('TextStyle(inherit: false, size: 10.0, weight: 800, height: 123.0x)'),
42 final TextStyle s2 = s1.copyWith(color: const Color(0xFF00FF00), height: 100.0);
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/cupertino/
Dtext_theme.dart12 const TextStyle _kDefaultLightTextStyle = TextStyle(
22 const TextStyle _kDefaultDarkTextStyle = TextStyle(
32 const TextStyle _kDefaultActionTextStyle = TextStyle(
42 const TextStyle _kDefaultTabLabelTextStyle = TextStyle(
50 const TextStyle _kDefaultMiddleTitleLightTextStyle = TextStyle(
59 const TextStyle _kDefaultMiddleTitleDarkTextStyle = TextStyle(
68 const TextStyle _kDefaultLargeTitleLightTextStyle = TextStyle(
77 const TextStyle _kDefaultLargeTitleDarkTextStyle = TextStyle(
87 const TextStyle _kDefaultPickerLightTextStyle = TextStyle(
97 const TextStyle _kDefaultPickerDarkTextStyle = TextStyle(
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dtypography.dart12 /// its localized [TextStyle] geometry for [ThemeData.textTheme].
269 …display4 : TextStyle(debugLabel: 'blackMountainView display4', fontFamily: 'Roboto', inherit: …
270 …display3 : TextStyle(debugLabel: 'blackMountainView display3', fontFamily: 'Roboto', inherit: …
271 …display2 : TextStyle(debugLabel: 'blackMountainView display2', fontFamily: 'Roboto', inherit: …
272 …display1 : TextStyle(debugLabel: 'blackMountainView display1', fontFamily: 'Roboto', inherit: …
273 …headline : TextStyle(debugLabel: 'blackMountainView headline', fontFamily: 'Roboto', inherit: …
274 …title : TextStyle(debugLabel: 'blackMountainView title', fontFamily: 'Roboto', inherit: …
275 …subhead : TextStyle(debugLabel: 'blackMountainView subhead', fontFamily: 'Roboto', inherit: …
276 …body2 : TextStyle(debugLabel: 'blackMountainView body2', fontFamily: 'Roboto', inherit: …
277 …body1 : TextStyle(debugLabel: 'blackMountainView body1', fontFamily: 'Roboto', inherit: …
[all …]
Dtext_theme.dart128 final TextStyle display4;
133 final TextStyle display3;
136 final TextStyle display2;
139 final TextStyle display1;
143 final TextStyle headline;
147 final TextStyle title;
150 final TextStyle subhead;
153 final TextStyle body2;
156 final TextStyle body1;
159 final TextStyle caption;
[all …]
Ddialog_theme.dart57 final TextStyle titleTextStyle;
62 final TextStyle contentTextStyle;
70 TextStyle titleTextStyle,
71 TextStyle contentTextStyle,
98 titleTextStyle: TextStyle.lerp(a?.titleTextStyle, b?.titleTextStyle, t),
99 contentTextStyle: TextStyle.lerp(a?.contentTextStyle, b?.contentTextStyle, t),
126 …properties.add(DiagnosticsProperty<TextStyle>('titleTextStyle', titleTextStyle, defaultValue: null…
127 …properties.add(DiagnosticsProperty<TextStyle>('contentTextStyle', contentTextStyle, defaultValue: …
/third_party/flutter/flutter/packages/flutter/test/material/
Dtext_theme_test.dart51 const TextTheme partialTheme = TextTheme(title: TextStyle(color: Color(0xcafefeed)));
56 headline: TextStyle(color: Color(0xcafefeed)),
57 title: TextStyle(color: Color(0xbeefcafe)),
60 body1: TextStyle(color: Color(0xfeedfeed)),
61 title: TextStyle(color: Color(0xdeadcafe)),
111 final List<TextStyle> themeStyles = <TextStyle>[
126 expect(themeStyles.every((TextStyle style) => style.fontFamily == fontFamily), true);
127 expect(themeStyles.every((TextStyle style) => style.decorationColor == decorationColor), true);
128 expect(themeStyles.every((TextStyle style) => style.decorationStyle == decorationStyle), true);
129 expect(themeStyles.every((TextStyle style) => style.decoration == decoration), true);
[all …]
Ddialog_theme_test.dart51 titleTextStyle: TextStyle(color: Color(0xffffffff)),
52 contentTextStyle: TextStyle(color: Color(0xff000000)),
60 'titleTextStyle: TextStyle(inherit: true, color: Color(0xffffffff))',
61 'contentTextStyle: TextStyle(inherit: true, color: Color(0xff000000))',
142 const TextStyle titleTextStyle = TextStyle(color: Colors.pink);
159 const TextStyle titleTextStyle = TextStyle(color: Colors.pink);
176 const TextStyle titleTextStyle = TextStyle(color: Colors.pink);
193 const TextStyle contentTextStyle = TextStyle(color: Colors.pink);
210 const TextStyle contentTextStyle = TextStyle(color: Colors.pink);
227 const TextStyle contentTextStyle = TextStyle(color: Colors.pink);
/third_party/flutter/flutter/examples/flutter_gallery/lib/gallery/
Dsyntax_highlighter.dart22 baseStyle: const TextStyle(color: Color(0xFF000000)),
23 numberStyle: const TextStyle(color: Color(0xFF1565C0)),
24 commentStyle: const TextStyle(color: Color(0xFF9E9E9E)),
25 keywordStyle: const TextStyle(color: Color(0xFF9C27B0)),
26 stringStyle: const TextStyle(color: Color(0xFF43A047)),
27 punctuationStyle: const TextStyle(color: Color(0xFF000000)),
28 classStyle: const TextStyle(color: Color(0xFF512DA8)),
29 constantStyle: const TextStyle(color: Color(0xFF795548)),
35 baseStyle: const TextStyle(color: Color(0xFFFFFFFF)),
36 numberStyle: const TextStyle(color: Color(0xFF1565C0)),
[all …]
/third_party/skia/modules/skparagraph/src/
DTextStyle.cpp9 const std::vector<SkString> TextStyle::kDefaultFontFamilies = { SkString(DEFAULT_FONT_FAMILY) };
11 TextStyle::TextStyle(const TextStyle& other, bool placeholder) { in TextStyle() function in skia::textlayout::TextStyle
27 bool TextStyle::equals(const TextStyle& other) const { in equals()
92 bool TextStyle::equalsByFonts(const TextStyle& that) const { in equalsByFonts()
106 bool TextStyle::matchOneAttribute(StyleType styleType, const TextStyle& other) const { in matchOneAttribute()
156 void TextStyle::getFontMetrics(SkFontMetrics* metrics) const { in getFontMetrics()
DDecorations.h15 …void paint(SkCanvas* canvas, const TextStyle& textStyle, const TextLine::ClipContext& context, SkS…
19 void calculateThickness(TextStyle textStyle, sk_sp<SkTypeface> typeface);
21 void calculatePaint(const TextStyle& textStyle);
22 void calculateWaves(const TextStyle& textStyle, SkRect clip);
/third_party/flutter/flutter/packages/flutter/test/widgets/
Dtext_golden_test.dart24 style: TextStyle(color: Color(0xffff0000)),
51 style: TextStyle(color: Color(0xffff0000)),
82 style: TextStyle(
106 style: TextStyle(
131 style: TextStyle(
173 style: TextStyle(
181 style: TextStyle(
222 style: TextStyle(color: Colors.black),
256 style: TextStyle(),
284 style: TextStyle(),
[all …]
/third_party/skia/modules/skparagraph/include/
DTextStyle.h148 class TextStyle {
150 TextStyle() = default;
151 TextStyle(const TextStyle& other, bool placeholder);
153 bool equals(const TextStyle& other) const;
154 bool equalsByFonts(const TextStyle& that) const;
155 bool matchOneAttribute(StyleType styleType, const TextStyle& other) const;
156 bool operator==(const TextStyle& rhs) const { return this->equals(rhs); }
301 Block(size_t start, size_t end, const TextStyle& style) : fRange(start, end), fStyle(style) {} in Block()
302 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
310 TextStyle fStyle;
[all …]
/third_party/flutter/skia/modules/skparagraph/include/
DTextStyle.h62 class TextStyle {
64 TextStyle();
65 ~TextStyle() = default;
67 bool equals(const TextStyle& other) const;
68 bool matchOneAttribute(StyleType styleType, const TextStyle& other) const;
69 bool operator==(const TextStyle& rhs) const { return this->equals(rhs); }
179 Block(size_t start, size_t end, const TextStyle& style) in Block()
181 Block(TextRange textRange, const TextStyle& style) in Block()
189 TextStyle fStyle;
/third_party/flutter/skia/modules/skparagraph/src/
DTextStyle.cpp9 TextStyle::TextStyle() : fFontStyle() { in TextStyle() function in skia::textlayout::TextStyle
31 bool TextStyle::equals(const TextStyle& other) const { in equals()
78 bool TextStyle::matchOneAttribute(StyleType styleType, const TextStyle& other) const { in matchOneAttribute()
125 void TextStyle::getFontMetrics(SkFontMetrics* metrics) const { in getFontMetrics()
/third_party/flutter/flutter/examples/layers/widgets/
Dstyled_text.dart26 final TextStyle _kDaveStyle = TextStyle(color: Colors.indigo.shade400, height: 1.8);
27 final TextStyle _kHalStyle = TextStyle(color: Colors.red.shade400, fontFamily: 'monospace');
28 const TextStyle _kBold = TextStyle(fontWeight: FontWeight.bold);
29 const TextStyle _kUnderline = TextStyle(
36 final TextStyle lineStyle = (name == 'Dave') ? _kDaveStyle : _kHalStyle;
/third_party/flutter/txt/src/txt/
Dparagraph_txt.h220 BidiRun(size_t s, size_t e, TextDirection d, const TextStyle& st) in BidiRun()
227 const TextStyle& st, in BidiRun()
235 const TextStyle& st, in BidiRun()
248 const TextStyle& style() const { return *style_; } in style()
258 const TextStyle* style_;
290 const TextStyle* style;
299 const TextStyle& st,
367 const TextStyle& style,
404 const TextStyle& style);
407 sk_sp<SkTypeface> GetDefaultSkiaTypeface(const TextStyle& style);
Dpaint_record.h38 PaintRecord(TextStyle style,
47 PaintRecord(TextStyle style,
57 PaintRecord(TextStyle style,
77 const TextStyle& style() const { return style_; } in style()
92 TextStyle style_;
Dtext_style.cc26 TextStyle::TextStyle() : font_families(GetDefaultFontFamilies()) {} in TextStyle() function in txt::TextStyle
28 bool TextStyle::equals(const TextStyle& other) const { in equals()
/third_party/flutter/engine/flutter/third_party/txt/src/txt/
Dpaint_record.h38 PaintRecord(TextStyle style,
47 PaintRecord(TextStyle style,
57 PaintRecord(TextStyle style,
77 const TextStyle& style() const { return style_; } in style()
92 TextStyle style_;
Dtext_style.cc26 TextStyle::TextStyle() in TextStyle() function in txt::TextStyle
29 bool TextStyle::equals(const TextStyle& other) const { in equals()
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp98 TextStyle defaultStyle; in drawTest()
112 TextStyle style; in drawTest()
197 TextStyle defaultStyle; in drawCode()
241 TextStyle style(SkPaint paint) { in style()
242 TextStyle style; in style()
273 TextStyle style; in drawText()
286 TextStyle defaultStyle; in drawText()
325 TextStyle style; in drawLine()
445 TextStyle style; in drawLine()
583 TextStyle style; in drawFlutter()
[all …]
/third_party/flutter/flutter/examples/layers/rendering/
Dflex_layout.dart16 TextStyle style = const TextStyle(color: Color(0xFF000000));
23 style = const TextStyle(fontSize: 15.0, color: Color(0xFF000000));
31 style = const TextStyle(fontSize: 10.0, color: Color(0xFF000000));
40 style = const TextStyle(fontSize: 25.0, color: Color(0xFF000000));
62 const TextStyle style = TextStyle(color: Color(0xFF000000));
/third_party/flutter/txt/src/skia/
Dparagraph_builder_skia.h34 virtual void PushStyle(const TextStyle& style) override;
36 virtual const TextStyle& PeekStyle() override;
43 TextStyle base_style_;
44 std::stack<TextStyle> txt_style_stack_;
/third_party/flutter/engine/flutter/third_party/txt/src/skia/
Dparagraph_builder_skia.h34 virtual void PushStyle(const TextStyle& style) override;
36 virtual const TextStyle& PeekStyle() override;
43 TextStyle base_style_;
44 std::stack<TextStyle> txt_style_stack_;
/third_party/flutter/skia/samplecode/
DSampleParagraph.cpp100 TextStyle defaultStyle; in drawTest()
114 TextStyle style; in drawTest()
199 TextStyle defaultStyle; in drawCode()
235 TextStyle style(SkPaint paint) { in style()
236 TextStyle style; in style()
267 TextStyle style; in drawText()
280 TextStyle defaultStyle; in drawText()
319 TextStyle style; in drawLine()
440 TextStyle style; in drawLine()
578 TextStyle style; in drawFlutter()
[all …]

12345678910>>...12