Projects STRLCPY termdash Commits f8470e7d
🤬
  • ■ ■ ■ ■ ■ ■
    container/container_test.go
    skipped 1002 lines
    1003 1003   return ft
    1004 1004   },
    1005 1005   },
    1006  - {
     1006 + {
    1007 1007   desc: "sets border title on root container of different color",
    1008 1008   termSize: image.Point{10, 10},
    1009 1009   container: func(ft *faketerm.Terminal) (*Container, error) {
    skipped 55 lines
    1065 1065   SplitVertical(
    1066 1066   Left(
    1067 1067   Border(linestyle.Light),
    1068  - BorderTitle("Ab"),
    1069  - TitleColor(cell.ColorMagenta),
    1070  - TitleFocusedColor(cell.ColorCyan),
     1068 + BorderTitle("Ab"),
     1069 + TitleColor(cell.ColorMagenta),
     1070 + TitleFocusedColor(cell.ColorCyan),
    1071 1071   ),
    1072 1072   Right(
    1073 1073   Border(linestyle.Light),
    skipped 29 lines
    1103 1103   return ft
    1104 1104   },
    1105 1105   },
    1106  - 
    1107 1106   {
    1108 1107   desc: "inherits title color on left child container",
    1109 1108   termSize: image.Point{10, 10},
    skipped 6 lines
    1116 1115   SplitVertical(
    1117 1116   Left(
    1118 1117   Border(linestyle.Light),
    1119  - BorderTitle("Ab"),
     1118 + BorderTitle("Ab"),
    1120 1119   ),
    1121 1120   Right(
    1122 1121   Border(linestyle.Light),
    skipped 1935 lines
  • ■ ■ ■ ■ ■ ■
    container/draw.go
    skipped 86 lines
    87 87   var cOpts, titleCOpts []cell.Option
    88 88   if c.focusTracker.isActive(c) {
    89 89   cOpts = append(cOpts, cell.FgColor(c.opts.inherited.focusedColor))
    90  - if c.opts.inherited.titleFocusedColor != nil {
     90 + if c.opts.inherited.titleFocusedColor != nil {
    91 91   titleCOpts = append(titleCOpts, cell.FgColor(*c.opts.inherited.titleFocusedColor))
    92  - } else {
     92 + } else {
    93 93   titleCOpts = cOpts
    94 94   }
    95  - } else {
     95 + } else {
    96 96   cOpts = append(cOpts, cell.FgColor(c.opts.inherited.borderColor))
    97  - if c.opts.inherited.titleColor != nil {
     97 + if c.opts.inherited.titleColor != nil {
    98 98   titleCOpts = append(titleCOpts, cell.FgColor(*c.opts.inherited.titleColor))
    99  - } else {
     99 + } else {
    100 100   titleCOpts = cOpts
    101 101   }
    102  - }
     102 + }
    103 103   
    104 104   if err := draw.Border(cvs, ar,
    105 105   draw.BorderLineStyle(c.opts.border),
    skipped 81 lines
Please wait...
Page is in error, reload to recover