-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add menu shortcut texts for windows & linux
- Loading branch information
1 parent
b529a32
commit 4b4edb4
Showing
6 changed files
with
181 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
package widget | ||
|
||
const runeModifierSuper = '⌘' | ||
import ( | ||
"fyne.io/fyne/v2" | ||
) | ||
|
||
const ( | ||
textModifierAlt = "⌥" | ||
textModifierControl = "⌃" | ||
textModifierShift = "⇧" | ||
textModifierSuper = "⌘" | ||
) | ||
|
||
var ( | ||
styleModifiers = fyne.TextStyle{Symbol: true} | ||
defaultStyleKeys = fyne.TextStyle{Monospace: true} | ||
) | ||
|
||
var keyTexts = map[fyne.KeyName]string{ | ||
fyne.KeyBackspace: "⌫", | ||
fyne.KeyDelete: "⌦", | ||
fyne.KeyDown: "↓", | ||
fyne.KeyEnd: "↘", | ||
fyne.KeyEnter: "↩", | ||
fyne.KeyEscape: "⎋", | ||
fyne.KeyHome: "↖", | ||
fyne.KeyLeft: "←", | ||
fyne.KeyPageDown: "⇟", | ||
fyne.KeyPageUp: "⇞", | ||
fyne.KeyReturn: "↩", | ||
fyne.KeyRight: "→", | ||
fyne.KeySpace: "␣", | ||
fyne.KeyTab: "⇥", | ||
fyne.KeyUp: "↑", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+8.08 KB
(160%)
widget/testdata/menu/desktop/layout_shortcuts_other_theme_changed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.