You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
h("div",{style: DELAY_BODY_STYLE},"The operation is taking a long time to execute. This may be due to a large number of targets or attributes being processed. Please be patient as the operation completes.")));
99
+
h("div",null,"The operation is taking a long time to execute. This may be due to a large number of targets or attributes being processed. Please be patient as the operation completes.")));
158
100
}
159
101
160
-
// #region Chat Styles
161
-
constCHAT_WRAPPER_STYLE=s({
162
-
border: `1px solid ${COLOR_EMERALD["300"]}`,
163
-
borderRadius: BORDER_RADIUS.MD,
164
-
padding: PADDING.MD,
165
-
backgroundColor: COLOR_EMERALD["50"],
166
-
});
167
-
constCHAT_HEADER_STYLE=s({
168
-
fontSize: FONT_SIZE.LG,
169
-
fontWeight: "bold",
170
-
marginBottom: PADDING.SM,
171
-
});
102
+
constCHAT_WRAPPER_STYLE=s(frameStyleBase);
103
+
constCHAT_HEADER_STYLE=s(headerStyleBase);
172
104
constCHAT_BODY_STYLE=s({
173
-
fontSize: FONT_SIZE.SM,
105
+
fontSize: "14px",
106
+
lineHeight: "1.4",
174
107
});
175
-
// #region Error Styles
176
108
constERROR_WRAPPER_STYLE=s({
177
-
border: `1px solid ${COLOR_RED["300"]}`,
178
-
borderRadius: BORDER_RADIUS.MD,
179
-
padding: PADDING.MD,
180
-
backgroundColor: COLOR_RED["50"],
181
-
});
182
-
constERROR_HEADER_STYLE=s({
183
-
color: COLOR_RED["500"],
184
-
fontWeight: "bold",
185
-
fontSize: FONT_SIZE.LG,
109
+
...frameStyleBase,
110
+
...frameStyleError,
186
111
});
112
+
constERROR_HEADER_STYLE=s(headerStyleBase);
187
113
constERROR_BODY_STYLE=s({
188
-
fontSize: FONT_SIZE.SM,
114
+
fontSize: "14px",
115
+
lineHeight: "1.4",
189
116
});
190
117
// #region Generic Message Creation Function
191
118
functioncreateMessage(header,messages,styles){
@@ -210,26 +137,12 @@ var ChatSetAttr = (function (exports) {
210
137
});
211
138
}
212
139
213
-
constNOTIFY_WRAPPER_STYLE=s({
214
-
border: `1px solid ${COLOR_BLUE["300"]}`,
215
-
borderRadius: BORDER_RADIUS.MD,
216
-
padding: PADDING.MD,
217
-
color: COLOR_BLUE["800"],
218
-
backgroundColor: COLOR_BLUE["100"],
219
-
});
220
-
constNOTIFY_HEADER_STYLE=s({
221
-
color: COLOR_BLUE["900"],
222
-
fontSize: FONT_SIZE.LG,
223
-
fontWeight: "bold",
224
-
marginBottom: PADDING.SM,
225
-
});
226
-
constNOTIFY_BODY_STYLE=s({
227
-
fontSize: FONT_SIZE.MD,
228
-
});
140
+
constNOTIFY_WRAPPER_STYLE=s(frameStyleBase);
141
+
constNOTIFY_HEADER_STYLE=s(headerStyleBase);
229
142
functioncreateNotifyMessage(title,content){
230
143
return(h("div",{style: NOTIFY_WRAPPER_STYLE},
231
144
h("div",{style: NOTIFY_HEADER_STYLE},title),
232
-
h("div",{style: NOTIFY_BODY_STYLE},content)));
145
+
h("div",null,content)));
233
146
}
234
147
235
148
functiongetPlayerName(playerID){
@@ -261,7 +174,7 @@ var ChatSetAttr = (function (exports) {
261
174
<p>Thank you for installing ChatSetAttr.</p>
262
175
<p>To get started, use the command <code>!setattr-config</code> to configure the script to your needs.</p>
263
176
<p>For detailed documentation and examples, please use the <code>!setattr-help</code> command or click the button below:</p>
0 commit comments