-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from bridgedxyz/channels/beta
2021.0.1 release
- Loading branch information
Showing
7 changed files
with
124 additions
and
103 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
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,27 +1,34 @@ | ||
import React from "react" | ||
import React from "react"; | ||
import { Button } from "@material-ui/core"; | ||
import { EK_REPLACE_FONT } from "../../../constants/ek.constant"; | ||
|
||
export function FontReplacerScreen() { | ||
function onReplaceFontClick() { | ||
console.log("onReplaceFontClick"); | ||
|
||
function onReplaceFontClick() { | ||
console.log('onReplaceFontClick') | ||
parent.postMessage( | ||
{ | ||
pluginMessage: { | ||
type: EK_REPLACE_FONT, | ||
data: { | ||
// todo add more options for user to chose font maps to be replaced | ||
}, | ||
}, | ||
}, | ||
"*" | ||
); | ||
} | ||
|
||
parent.postMessage({ | ||
pluginMessage: { | ||
type: EK_REPLACE_FONT, | ||
data: { | ||
// todo add more options for user to chose font maps to be replaced | ||
} | ||
} | ||
}, "*") | ||
} | ||
|
||
return <div> | ||
<p> | ||
converts all text in selected frame as Roboto Regular. | ||
this can be used when no font on original design is installed on your device. | ||
</p> | ||
<Button onClick={onReplaceFontClick}>replace fonts to roboto regular</Button> | ||
return ( | ||
<div> | ||
<em>WARNING! this is a hightly distructive operation.</em> | ||
<p> | ||
converts all text in selected frame as Roboto Regular. this can be used | ||
when no font on original design is installed on your device. | ||
</p> | ||
<Button variant="outlined" onClick={onReplaceFontClick} color="secondary"> | ||
replace fonts to roboto regular | ||
</Button> | ||
</div> | ||
} | ||
); | ||
} |
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
Oops, something went wrong.