| ... | @@ -1106,20 +1106,21 @@ impl State { | ... | @@ -1106,20 +1106,21 @@ impl State { |
| 1106 | space, | 1106 | space, |
| 1107 | Spec { | 1107 | Spec { |
| 1108 | size: [px(PAGE_LIST), px(26.0)], | 1108 | size: [px(PAGE_LIST), px(26.0)], |
| 1109 | pad: [6.0, 0.0], | | |
| 1110 | ..Spec::default() | 1109 | ..Spec::default() |
| 1111 | }, | 1110 | }, |
| 1112 | ); | 1111 | ); |
| 1113 | let spec = Spec { | 1112 | let spec = Spec { |
| 1114 | size: [fill(), px(26.0)], | 1113 | flags: Flags::CLICKABLE | Flags::FLOAT, |
| | 1114 | size: [px(PAGE_LIST - 3.0 - 6.0), px(26.0)], |
| | 1115 | position: [3.0, 0.0], |
| 1115 | color: Some(if title.is_empty() { | 1116 | color: Some(if title.is_empty() { |
| 1116 | ui::mix(theme.ink, section.tab, 0.5) | 1117 | ui::mix(theme.ink, section.tab, 0.5) |
| 1117 | } else { | 1118 | } else { |
| 1118 | theme.ink | 1119 | theme.ink |
| 1119 | }), | 1120 | }), |
| 1120 | fill: Some(section.tab), | 1121 | fill: Some(section.tab), |
| 1121 | hover_fill: Some(ui::mix(section.tab, theme.ink, 0.12)), | 1122 | hover_fill: Some(ui::mix(section.tab, section.accent, 0.3)), |
| 1122 | radius: 13.0, | 1123 | radius: ROUNDING, |
| 1123 | ..spec | 1124 | ..spec |
| 1124 | }; | 1125 | }; |
| 1125 | let clicked = self.ui.leaf("pill", spec).clicked; | 1126 | let clicked = self.ui.leaf("pill", spec).clicked; |