deeke-script-app 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -91,12 +91,35 @@ interface Console {
|
|
|
91
91
|
setLineHeight(lineHeight: number): void;
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* 一次性设置两个按钮的颜色(关闭按钮、调整大小按钮)
|
|
95
95
|
* @param closeColor 关闭按钮颜色(ARGB格式)
|
|
96
|
-
* @param dragColor 拖拽按钮颜色(ARGB格式)
|
|
97
96
|
* @param resizeColor 调整大小按钮颜色(ARGB格式)
|
|
98
97
|
*/
|
|
99
|
-
setButtonColors(closeColor: number,
|
|
98
|
+
setButtonColors(closeColor: number, resizeColor: number): void;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 设置标题栏文字的颜色
|
|
102
|
+
* @param color 颜色值(ARGB格式,如 0xFFFFFFFF 表示白色)
|
|
103
|
+
*/
|
|
104
|
+
setTitleTextColor(color: number): void;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* 设置标题栏文字的字体大小
|
|
108
|
+
* @param size 字体大小(sp)
|
|
109
|
+
*/
|
|
110
|
+
setTitleTextSize(size: number): void;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 设置标题栏的文字内容
|
|
114
|
+
* @param text 标题文字内容。如果传入 null 或空字符串,将使用应用名称作为默认标题
|
|
115
|
+
*/
|
|
116
|
+
setTitleText(text: string | null): void;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 设置标题栏的背景颜色
|
|
120
|
+
* @param color 颜色值(ARGB格式,-1表示自动计算,比背景色深20%)
|
|
121
|
+
*/
|
|
122
|
+
setTitleBarColor(color: number): void;
|
|
100
123
|
|
|
101
124
|
/**
|
|
102
125
|
* 设置是否允许窗口移动到顶部
|
|
@@ -159,8 +182,11 @@ interface Console {
|
|
|
159
182
|
textSize?: number;
|
|
160
183
|
lineHeight?: number;
|
|
161
184
|
closeButtonColor?: number;
|
|
162
|
-
dragButtonColor?: number;
|
|
163
185
|
resizeButtonColor?: number;
|
|
186
|
+
titleTextColor?: number;
|
|
187
|
+
titleTextSize?: number;
|
|
188
|
+
titleText?: string | null;
|
|
189
|
+
titleBarColor?: number;
|
|
164
190
|
allowMoveToTop?: boolean;
|
|
165
191
|
allowMoveToBottom?: boolean;
|
|
166
192
|
clickable?: boolean;
|
|
@@ -180,8 +206,11 @@ interface Console {
|
|
|
180
206
|
textSize: number;
|
|
181
207
|
lineHeight: number;
|
|
182
208
|
closeButtonColor: number;
|
|
183
|
-
dragButtonColor: number;
|
|
184
209
|
resizeButtonColor: number;
|
|
210
|
+
titleTextColor: number;
|
|
211
|
+
titleTextSize: number;
|
|
212
|
+
titleText: string;
|
|
213
|
+
titleBarColor: number;
|
|
185
214
|
allowMoveToTop: boolean;
|
|
186
215
|
allowMoveToBottom: boolean;
|
|
187
216
|
clickable: boolean;
|