Skip to content

Commit

Permalink
style(popup): disabled transparent background.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed Apr 19, 2020
1 parent d938c83 commit e38a13a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 183 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
/build
.DS_Store
._.*
yarn-error.log
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const createPopupWindow = async () => {
const popup = new BrowserWindow({
show: false,
frame: false,
transparent: true,
// transparent: true,
width: isDev ? 900 : 460,
height: 600,
x: isDev ? curDisplay.bounds.width / 2 : curDisplay.bounds.width - 500 - 140,
Expand Down
179 changes: 0 additions & 179 deletions menu.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "champ-r",
"version": "0.9.1",
"version": "0.9.3",
"license": "MIT",
"description": "Get champion items for lol, Windows only.",
"productName": "ChampR",
Expand Down
5 changes: 3 additions & 2 deletions src/modules/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export default function Popup() {
return <div className={s.loading}>loading...</div>;
}

return <>
return <div className={s.main}>
{
championDetail &&
<div className={s.drag}>
Expand All @@ -140,6 +140,7 @@ export default function Popup() {
TabContent: {
style: () => {
return {
paddingTop: 0,
paddingLeft: 0,
paddingRight: 0,
paddingBottom: 0,
Expand All @@ -165,7 +166,7 @@ export default function Popup() {
</div>
</Tab>
</Tabs>
</>;
</div>;
};

return <StyletronProvider value={engine}>
Expand Down
4 changes: 4 additions & 0 deletions src/modules/popup/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ body {
background-color: #ffffff;
}

.main {
background-color: #ffffff;
}

.drag {
display: flex;
margin-bottom: 1ex;
Expand Down

0 comments on commit e38a13a

Please sign in to comment.