Skip to content

Commit

Permalink
fix rendering of the 104 key keyboard.
Browse files Browse the repository at this point in the history
disable the option to hide unused features, as we're going in a different direction (we're going to show the features as
unavailable with a tooltip. This both eases rendering and helps advertise firmware features.)
  • Loading branch information
obra committed Feb 8, 2024
1 parent e117e4b commit 70630d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/renderer/screens/Editor/Keyboard104.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ const KeySelector = (props) => {
viewBox={"0 0 " + Math.round(23 * keycapunit).toString() + " " + Math.round(6.5 * keycapunit).toString()}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMin meet"
height="15rem"
className={props.className}
style={{
display: "block",
fontWeight: 400,
maxHeight: "15rem",
maxWidth: "100%",

fontSize: Math.round(keycapunit / 4),
}}
>
Expand Down
15 changes: 9 additions & 6 deletions src/renderer/screens/Preferences/ui/LayoutEditorPreferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ function LayoutEditorPreferences(props) {
<Keyboard104 onKeySelect={() => null} layout={layout} />
</Paper>
<Divider sx={{ my: 2, mx: -2 }} />
<PreferenceSwitch
loaded={loaded}
option="ui.hideUnavailableFeatures"
checked={hideUnavailableFeatures}
onChange={toggleHideUnavailableFeatures}
/>
{0 &
(
<PreferenceSwitch
loaded={loaded}
option="ui.hideUnavailableFeatures"
checked={hideUnavailableFeatures}
onChange={toggleHideUnavailableFeatures}
/>
)}
</PreferenceSection>
);
}
Expand Down

0 comments on commit 70630d8

Please sign in to comment.