aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 4ff0446ad..0440367de 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -990,10 +990,10 @@ export class CurrentUserUtils {
if (type === "TextMenu") {
const textBtns = (CurrentUserUtils.textTools(doc)).map(({ title, width, list, toolTip, ignoreClick, icon, btnType, click, script, userColorBtn }) => {
textDocList.push(Docs.Create.FontIconDocument({
- _nativeWidth: width ? width : 30,
- _nativeHeight: 30,
- _width: width ? width : 30,
- _height: 30,
+ _nativeWidth: width ? width : 25,
+ _nativeHeight: 25,
+ _width: width ? width : 25,
+ _height: 25,
icon,
toolTip,
userColorBtn,
@@ -1006,7 +1006,8 @@ export class CurrentUserUtils {
system: true,
dontUndo: true,
title,
- backgroundColor: "black",
+ color: Colors.WHITE,
+ backgroundColor: "transparent",
_dropAction: "alias",
_removeDropProperties: new List<string>(["dropAction", "_stayInCollection"]),
onClick: click ? ScriptField.MakeScript(click, { doc: Doc.name }) : undefined
@@ -1016,10 +1017,10 @@ export class CurrentUserUtils {
} else if (type === "InkMenu") {
const inkBtns = (CurrentUserUtils.inkTools(doc)).map(({ title, toolTip, icon, btnType, click }) => {
textDocList.push(Docs.Create.FontIconDocument({
- _nativeWidth: width ? width : 30,
- _nativeHeight: 30,
- _width: width ? width : 30,
- _height: 30,
+ _nativeWidth: width ? width : 25,
+ _nativeHeight: 25,
+ _width: width ? width : 25,
+ _height: 25,
icon,
toolTip,
script,
@@ -1031,7 +1032,8 @@ export class CurrentUserUtils {
system: true,
dontUndo: true,
title,
- backgroundColor: "black",
+ color: Colors.WHITE,
+ backgroundColor: "transparent",
_dropAction: "alias",
_removeDropProperties: new List<string>(["dropAction", "_stayInCollection"]),
onClick: click ? ScriptField.MakeScript(click, { doc: Doc.name }) : undefined
@@ -1040,14 +1042,12 @@ export class CurrentUserUtils {
docList.push(CurrentUserUtils.blist({ linearViewSubMenu: true, ignoreClick: true, linearViewExpandable: true, icon:title, _height: 30, backgroundColor: "transparent" }, textDocList));
} else {
docList.push(Docs.Create.FontIconDocument({
- _nativeWidth: width ? width : 30,
- _nativeHeight: 30,
- _width: width ? width : 30,
- _height: 30,
+ _nativeWidth: width ? width : 25,
+ _nativeHeight: 25,
+ _width: width ? width : 25,
+ _height: 25,
icon,
toolTip,
- // testToggle: toggle ? ScriptField.MakeScript(toggle, { scriptContext: "any" }) : undefined,
- // toggle: toggle,
script,
btnType: btnType,
btnList: new List<string>(list),
@@ -1057,7 +1057,8 @@ export class CurrentUserUtils {
system: true,
dontUndo: true,
title,
- backgroundColor: "black",
+ color: Colors.WHITE,
+ backgroundColor: "transparent",
_dropAction: "alias",
_removeDropProperties: new List<string>(["dropAction", "_stayInCollection"]),
onClick: click ? ScriptField.MakeScript(click, { scriptContext: "any" }) : undefined