Skip to content

Commit

Permalink
Increase default values for hint max column/row count to accommodate …
Browse files Browse the repository at this point in the history
…for vertical screens
  • Loading branch information
petoncle committed Dec 17, 2024
1 parent c61cc23 commit 1788f3f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions configuration/author.properties
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,6 @@ hint1-mode.hide-cursor.idle-duration-millis=0
hint1-mode.hint.type=grid
hint1-mode.hint.grid-area=active-screen
hint1-mode.hint.active-screen-grid-area-center=screen-center
hint1-mode.hint.grid-max-row-count=17
hint1-mode.hint.grid-max-column-count=22
#hint1-mode.hint.grid-cell-width=60
hint1-mode.hint.grid-cell-width=87
hint1-mode.hint.grid-cell-height=63
Expand Down
2 changes: 0 additions & 2 deletions configuration/mouseable.properties
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ hint1-mode.to.previous-mode-from-history-stack=+leftalt -leftalt | +esc | +backs
hint1-mode.hint.type=grid
hint1-mode.hint.grid-area=active-screen
hint1-mode.hint.active-screen-grid-area-center=screen-center
hint1-mode.hint.grid-max-row-count=26
hint1-mode.hint.grid-max-column-count=26
hint1-mode.hint.grid-cell-width=73
hint1-mode.hint.grid-cell-height=41
key-alias.hint1key=a b c d e f g h i j k l m n o p q r s t u v w x y z
Expand Down
2 changes: 0 additions & 2 deletions configuration/neo-mousekeys.properties
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ hint1-mode.hide-cursor.idle-duration-millis=0
hint1-mode.hint.type=grid
hint1-mode.hint.grid-area=active-screen
hint1-mode.hint.active-screen-grid-area-center=screen-center
hint1-mode.hint.grid-max-row-count=26
hint1-mode.hint.grid-max-column-count=26
hint1-mode.hint.grid-cell-width=73
hint1-mode.hint.grid-cell-height=41
hint1-mode.hint.undo=backspace
Expand Down
2 changes: 0 additions & 2 deletions configuration/warpd.properties
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ hint1-mode.to.previous-mode-from-history-stack=+esc | +backspace
hint1-mode.hint.type=grid
hint1-mode.hint.grid-area=active-screen
hint1-mode.hint.active-screen-grid-area-center=screen-center
hint1-mode.hint.grid-max-row-count=26
hint1-mode.hint.grid-max-column-count=26
hint1-mode.hint.grid-cell-width=73
hint1-mode.hint.grid-cell-height=41
key-alias.hint1key=a b c d e f g h i j k l m n o p q r s t u v w x y z
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/mousemaster/ConfigurationParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ private static Map<String, Property<?>> defaultPropertyByName() {
.swallowHintEndKeyPress(true)
.savePositionAfterSelection(false);
HintMeshType.HintMeshTypeBuilder hintMeshTypeBuilder = hintMesh.type();
// On a 1920x1080 screen 73x41 cell size can accommodate up to 26x26 hints.
hintMeshTypeBuilder.type(HintMeshType.HintMeshTypeType.GRID)
.gridMaxRowCount(26)
.gridMaxColumnCount(26)
.gridMaxRowCount(100)
.gridMaxColumnCount(100)
.gridCellWidth(73)
.gridCellHeight(41);
HintGridArea.HintGridAreaBuilder hintGridAreaBuilder =
Expand Down

0 comments on commit 1788f3f

Please sign in to comment.