File tree Expand file tree Collapse file tree 9 files changed +77
-5
lines changed
java/gwt/material/design/incubator/client
resources/gwt/material/design/incubator/client/tag/resources/css Expand file tree Collapse file tree 9 files changed +77
-5
lines changed Original file line number Diff line number Diff line change 2222import gwt .material .design .client .theme .dark .DarkThemeLoader ;
2323import gwt .material .design .incubator .client .placeholder .PlaceholderDarkTheme ;
2424import gwt .material .design .incubator .client .progress .ProgressLineBarDarkTheme ;
25+ import gwt .material .design .incubator .client .tag .TagLabelDarkTheme ;
2526import gwt .material .design .incubator .client .toggle .GroupToggleDarkTheme ;
2627
2728public class IncubatorDarkThemeLoader extends DarkThemeLoader {
2829
2930 public IncubatorDarkThemeLoader () {
3031 super (new GroupToggleDarkTheme (),
3132 new PlaceholderDarkTheme (),
32- new ProgressLineBarDarkTheme ());
33+ new ProgressLineBarDarkTheme (),
34+ new TagLabelDarkTheme ());
3335 }
3436}
Original file line number Diff line number Diff line change @@ -28,4 +28,7 @@ public interface TagClientBundle extends ClientBundle {
2828
2929 @ Source ("resources/css/tag.min.css" )
3030 TextResource tagCss ();
31+
32+ @ Source ("resources/css/tag-dark.min.css" )
33+ TextResource tagDarkCss ();
3134}
Original file line number Diff line number Diff line change @@ -28,4 +28,7 @@ public interface TagDebugClientBundle extends ClientBundle {
2828
2929 @ Source ("resources/css/tag.css" )
3030 TextResource tagDebugCss ();
31+
32+ @ Source ("resources/css/tag-dark.css" )
33+ TextResource tagDarkCss ();
3134}
Original file line number Diff line number Diff line change 2525import gwt .material .design .client .constants .Size ;
2626import gwt .material .design .client .ui .MaterialLabel ;
2727import gwt .material .design .incubator .client .AddinsIncubator ;
28+ import gwt .material .design .incubator .client .dark .IncubatorDarkThemeReloader ;
2829
2930public class TagLabel extends MaterialLabel implements HasSize {
3031
@@ -46,6 +47,13 @@ public TagLabel() {
4647 setPosition (TagPosition .LEFT );
4748 }
4849
50+ @ Override
51+ protected void onLoad () {
52+ super .onLoad ();
53+
54+ IncubatorDarkThemeReloader .get ().reload (TagLabelDarkTheme .class );
55+ }
56+
4957 @ Override
5058 public void setSize (Size size ) {
5159 getSizeMixin ().setStyle (size .getCssName ());
Original file line number Diff line number Diff line change 1+ package gwt .material .design .incubator .client .tag ;
2+
3+ import gwt .material .design .addins .client .dark .AddinsWidgetDarkTheme ;
4+ import gwt .material .design .incubator .client .AddinsIncubator ;
5+ import gwt .material .design .incubator .client .progress .ProgressLineBarClientBundle ;
6+ import gwt .material .design .incubator .client .progress .ProgressLineBarDebugClientBundle ;
7+
8+ public class TagLabelDarkTheme extends AddinsWidgetDarkTheme {
9+
10+ public TagLabelDarkTheme () {
11+ super (AddinsIncubator .isDebug () ? TagDebugClientBundle .INSTANCE .tagDarkCss () : TagClientBundle .INSTANCE .tagDarkCss ());
12+ }
13+ }
Original file line number Diff line number Diff line change 1+ .tag-label {
2+ background : # 2f2f2f ;
3+ color : # ffffff ;
4+ }
5+
6+ .tag-label .arrow-left : before {
7+ border-color : transparent # 2f2f2f transparent
8+ }
9+
10+ .tag-label .arrow-right : after {
11+ border-color : transparent transparent transparent # 2f2f2f !important ;
12+ }
Original file line number Diff line number Diff line change 9494
9595.tag-label .arrow-left .medium : before {
9696 border-width : 16px 16px 16px 0 ;
97- left : -15px ;
97+ left : -16px ;
98+ }
99+
100+ .tag-label .arrow-left .medium : after {
101+ top : 12px ;
102+ width : 6px ;
103+ height : 6px ;
104+ border-radius : 3px ;
98105}
99106
100107/** Right - Medium **/
101108.tag-label .arrow-right .medium : after {
102109 border-width : 16px 0px 16px 16px !important ;
103- right : -15 px ;
110+ right : -16 px ;
104111}
105112
106113.tag-label .arrow-right .medium : before {
111118}
112119
113120/** Left - Large **/
114-
115121.tag-label .large {
116122 height : 40px ;
117123 line-height : 40px ;
124+ }
125+
126+ .tag-label .arrow-left .large : before {
127+ border-width : 20px 20px 20px 0 ;
128+ left : -20px ;
129+ }
130+
131+ .tag-label .arrow-left .large : after {
132+ top : 16px ;
133+ width : 6px ;
134+ height : 6px ;
135+ border-radius : 3px ;
136+ }
137+
138+ /** Right Large **/
139+ .tag-label .arrow-right .large : after {
140+ border-width : 20px 0px 20px 20px !important ;
141+ right : -20px ;
142+ }
143+
144+ .tag-label .arrow-right .large : before {
145+ top : 16px ;
146+ width : 6px ;
147+ height : 6px ;
148+ border-radius : 3px ;
118149}
You can’t perform that action at this time.
0 commit comments