Advertisement
tomas19132

Text Properties Example for Tasker Widget v2 Custom Layout

Nov 5th, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 11.45 KB | Source Code | 0 0
  1. {
  2.     "type": "Column",
  3.     "scrolling": true,
  4.     "fillMaxSize": true,
  5.     "useMaterialYouColors": true,
  6.     "children": [
  7.         {
  8.             "type": "Row",
  9.             "paddingTop": 12,
  10.             "paddingStart": 12,
  11.             "paddingEnd": 12,
  12.             "children": [
  13.                 {
  14.                     "type": "Text",
  15.                     "text": "Widget v2 Text Properties Example",
  16.                     "textSize": 18,
  17.                     "bold": true,
  18.                     "align": "Left",
  19.                     "backgroundColor": "#000000",
  20.                     "fillMaxWidth": true
  21.                 }
  22.             ]
  23.         },
  24.         {
  25.             "type": "Row",
  26.             "paddingTop": 12,
  27.             "paddingStart": 12,
  28.             "paddingEnd": 12,
  29.             "children": [
  30.                 {
  31.                     "type": "Text",
  32.                     "text": " • Property: textSize",
  33.                     "textSize": 18,
  34.                     "bold": true,
  35.                     "align": "Left",
  36.                     "backgroundColor": "#000000",
  37.                     "fillMaxWidth": true
  38.                 }
  39.             ]
  40.         },
  41.         {
  42.             "type": "Row",
  43.             "paddingTop": 4,
  44.             "paddingStart": 12,
  45.             "paddingEnd": 12,
  46.             "children": [
  47.                 {
  48.                     "type": "Text",
  49.                     "text": "Text with 14sp",
  50.                     "textSize": 14,
  51.                     "align": "Left",
  52.                     "backgroundColor": "#000000",
  53.                     "fillMaxWidth": true
  54.                 }
  55.             ]
  56.         },
  57.         {
  58.             "type": "Row",
  59.             "paddingTop": 4,
  60.             "paddingStart": 12,
  61.             "paddingEnd": 12,
  62.             "children": [
  63.                 {
  64.                     "type": "Text",
  65.                     "text": "Text with 16sp",
  66.                     "textSize": 16,
  67.                     "align": "Left",
  68.                     "backgroundColor": "#000000",
  69.                     "fillMaxWidth": true
  70.                 }
  71.             ]
  72.         },
  73.         {
  74.             "type": "Row",
  75.             "paddingTop": 4,
  76.             "paddingStart": 12,
  77.             "paddingEnd": 12,
  78.             "children": [
  79.                 {
  80.                     "type": "Text",
  81.                     "text": "Text with 18sp",
  82.                     "textSize": 18,
  83.                     "align": "Left",
  84.                     "backgroundColor": "#000000",
  85.                     "fillMaxWidth": true
  86.                 }
  87.             ]
  88.         },
  89.         {
  90.             "type": "Row",
  91.             "paddingTop": 12,
  92.             "paddingStart": 12,
  93.             "paddingEnd": 12,
  94.             "children": [
  95.                 {
  96.                     "type": "Text",
  97.                     "text": " • Property: bold, italic, underline, linethrough",
  98.                     "textSize": 18,
  99.                     "bold": true,
  100.                     "align": "Left",
  101.                     "backgroundColor": "#000000",
  102.                     "fillMaxWidth": true
  103.                 }
  104.             ]
  105.         },
  106.         {
  107.             "type": "Row",
  108.             "paddingTop": 4,
  109.             "paddingStart": 12,
  110.             "paddingEnd": 12,
  111.             "children": [
  112.                 {
  113.                     "type": "Text",
  114.                     "text": "This is text with bold set to true.",
  115.                     "textSize": 14,
  116.                     "bold": true,
  117.                     "align": "Left",
  118.                     "backgroundColor": "#000000",
  119.                     "fillMaxWidth": true
  120.                 }
  121.             ]
  122.         },
  123.         {
  124.             "type": "Row",
  125.             "paddingTop": 4,
  126.             "paddingStart": 12,
  127.             "paddingEnd": 12,
  128.             "children": [
  129.                 {
  130.                     "type": "Text",
  131.                     "text": "This is text with italic set to true.",
  132.                     "textSize": 14,
  133.                     "italic": true,
  134.                     "align": "Left",
  135.                     "backgroundColor": "#000000",
  136.                     "fillMaxWidth": true
  137.                 }
  138.             ]
  139.         },
  140.         {
  141.             "type": "Row",
  142.             "paddingTop": 4,
  143.             "paddingStart": 12,
  144.             "paddingEnd": 12,
  145.             "children": [
  146.                 {
  147.                     "type": "Text",
  148.                     "text": "This is text with underline set to true.",
  149.                     "textSize": 14,
  150.                     "underline": true,
  151.                     "align": "Left",
  152.                     "backgroundColor": "#000000",
  153.                     "fillMaxWidth": true
  154.                 }
  155.             ]
  156.         },
  157.         {
  158.             "type": "Row",
  159.             "paddingTop": 4,
  160.             "paddingStart": 12,
  161.             "paddingEnd": 12,
  162.             "children": [
  163.                 {
  164.                     "type": "Text",
  165.                     "text": "This is text with linethrough set to true.",
  166.                     "textSize": 14,
  167.                     "linethrough": true,
  168.                     "align": "Left",
  169.                     "backgroundColor": "#000000",
  170.                     "fillMaxWidth": true
  171.                 }
  172.             ]
  173.         },
  174.         {
  175.             "type": "Row",
  176.             "paddingTop": 4,
  177.             "paddingStart": 12,
  178.             "paddingEnd": 12,
  179.             "children": [
  180.                 {
  181.                     "type": "Text",
  182.                     "text": "This is text with italic, underline and linethrough set to true.",
  183.                     "textSize": 14,
  184.                     "italic": true,
  185.                     "underline": true,
  186.                     "linethrough": true,
  187.                     "align": "Left",
  188.                     "backgroundColor": "#000000",
  189.                     "fillMaxWidth": true
  190.                 }
  191.             ]
  192.         },
  193.         {
  194.             "type": "Row",
  195.             "paddingTop": 12,
  196.             "paddingStart": 12,
  197.             "paddingEnd": 12,
  198.             "children": [
  199.                 {
  200.                     "type": "Text",
  201.                     "text": " • Property: align",
  202.                     "textSize": 18,
  203.                     "bold": true,
  204.                     "align": "Left",
  205.                     "backgroundColor": "#000000",
  206.                     "fillMaxWidth": true
  207.                 }
  208.             ]
  209.         },
  210.         {
  211.             "type": "Row",
  212.             "paddingTop": 4,
  213.             "paddingStart": 12,
  214.             "paddingEnd": 12,
  215.             "children": [
  216.                 {
  217.                     "type": "Text",
  218.                     "text": "Text with align set to Left",
  219.                     "textSize": 14,
  220.                     "align": "Left",
  221.                     "backgroundColor": "#000000",
  222.                     "fillMaxWidth": true
  223.                 }
  224.             ]
  225.         },
  226.         {
  227.             "type": "Row",
  228.             "paddingTop": 4,
  229.             "paddingStart": 12,
  230.             "paddingEnd": 12,
  231.             "children": [
  232.                 {
  233.                     "type": "Text",
  234.                     "text": "Text with align set to Right",
  235.                     "textSize": 14,
  236.                     "align": "Right",
  237.                     "backgroundColor": "#000000",
  238.                     "fillMaxWidth": true
  239.                 }
  240.             ]
  241.         },
  242.         {
  243.             "type": "Row",
  244.             "paddingTop": 4,
  245.             "paddingStart": 12,
  246.             "paddingEnd": 12,
  247.             "children": [
  248.                 {
  249.                     "type": "Text",
  250.                     "text": "Text with align set to Center",
  251.                     "textSize": 14,
  252.                     "align": "Center",
  253.                     "backgroundColor": "#000000",
  254.                     "fillMaxWidth": true
  255.                 }
  256.             ]
  257.         },
  258.         {
  259.             "type": "Row",
  260.             "paddingTop": 4,
  261.             "paddingStart": 12,
  262.             "paddingEnd": 12,
  263.             "children": [
  264.                 {
  265.                     "type": "Text",
  266.                     "text": "Text with align set to End",
  267.                     "textSize": 14,
  268.                     "align": "End",
  269.                     "backgroundColor": "#000000",
  270.                     "fillMaxWidth": true
  271.                 }
  272.             ]
  273.         },
  274.         {
  275.             "type": "Row",
  276.             "paddingTop": 4,
  277.             "paddingStart": 12,
  278.             "paddingEnd": 12,
  279.             "children": [
  280.                 {
  281.                     "type": "Text",
  282.                     "text": "Text with align set to Start",
  283.                     "textSize": 14,
  284.                     "align": "Start",
  285.                     "backgroundColor": "#000000",
  286.                     "fillMaxWidth": true
  287.                 }
  288.             ]
  289.         },
  290.         {
  291.             "type": "Row",
  292.             "paddingTop": 12,
  293.             "paddingStart": 12,
  294.             "paddingEnd": 12,
  295.             "children": [
  296.                 {
  297.                     "type": "Text",
  298.                     "text": " • Property: fontFamily",
  299.                     "textSize": 18,
  300.                     "bold": true,
  301.                     "align": "Left",
  302.                     "backgroundColor": "#000000",
  303.                     "fillMaxWidth": true
  304.                 }
  305.             ]
  306.         },
  307.         {
  308.             "type": "Row",
  309.             "paddingTop": 4,
  310.             "paddingStart": 12,
  311.             "paddingEnd": 12,
  312.             "children": [
  313.                 {
  314.                     "type": "Text",
  315.                     "text": "This is text with fontFamily set to Serif.",
  316.                     "textSize": 14,
  317.                     "fontFamily": "Serif",
  318.                     "align": "Left",
  319.                     "backgroundColor": "#000000",
  320.                     "fillMaxWidth": true
  321.                 }
  322.             ]
  323.         },
  324.         {
  325.             "type": "Row",
  326.             "paddingTop": 4,
  327.             "paddingStart": 12,
  328.             "paddingEnd": 12,
  329.             "children": [
  330.                 {
  331.                     "type": "Text",
  332.                     "text": "This is text with fontFamily set to SansSerif.",
  333.                     "textSize": 14,
  334.                     "fontFamily": "SansSerif",
  335.                     "align": "Left",
  336.                     "backgroundColor": "#000000",
  337.                     "fillMaxSize": true
  338.                 }
  339.             ]
  340.         },
  341.         {
  342.             "type": "Row",
  343.             "paddingTop": 4,
  344.             "paddingStart": 12,
  345.             "paddingEnd": 12,
  346.             "children": [
  347.                 {
  348.                     "type": "Text",
  349.                     "text": "This is text with fontFamily set to Monospace.",
  350.                     "textSize": 14,
  351.                     "fontFamily": "Monospace",
  352.                     "align": "Left",
  353.                     "backgroundColor": "#000000",
  354.                     "fillMaxSize": true
  355.                 }
  356.             ]
  357.         },
  358.         {
  359.             "type": "Row",
  360.             "paddingTop": 4,
  361.             "paddingStart": 12,
  362.             "paddingEnd": 12,
  363.             "paddingBottom": 12,
  364.             "children": [
  365.                 {
  366.                     "type": "Text",
  367.                     "text": "This is text with fontFamily set to Cursive.",
  368.                     "textSize": 14,
  369.                     "fontFamily": "Cursive",
  370.                     "align": "Left",
  371.                     "backgroundColor": "#000000",
  372.                     "fillMaxSize": true
  373.                 }
  374.             ]
  375.         }
  376.     ]
  377. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement