Skip to content

Commit

Permalink
🚚 Move some components to a separate widgets directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Jan 24, 2025
1 parent 00d3a59 commit 5db6213
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 21 deletions.
7 changes: 4 additions & 3 deletions src/settings-renderer/components/AboutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ declare const window: WindowWithAPIs;
import React from 'react';
import { RiExternalLinkFill } from 'react-icons/ri';

import Swirl from './widgets/Swirl';
import Modal from './widgets/Modal';
import Button from './widgets/Button';

import * as classes from './AboutDialog.module.scss';
import Swirl from './Swirl';
import Modal from './Modal';
import Button from './Button';

const logo = require('../../../assets/icons/square-icon.svg');

Expand Down
11 changes: 5 additions & 6 deletions src/settings-renderer/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,19 @@ declare const window: WindowWithAPIs;

import React from 'react';
import { Tooltip } from 'react-tooltip';

import { RiSettings4Fill, RiInformation2Fill, RiPaletteFill } from 'react-icons/ri';

import * as classes from './App.module.scss';

import AboutDialog from './AboutDialog';
import GeneralSettingsDialog from './GeneralSettingsDialog';
import MenuThemesDialog from './MenuThemesDialog';
import Button from './Button';
import Sidebar from './Sidebar';
import Button from './widgets/Button';
import Sidebar from './widgets/Sidebar';
import Preview from './Preview';
import Properties from './Properties';
import MenuList from './MenuList';
import Headerbar from './Headerbar';
import Headerbar from './widgets/Headerbar';

import * as classes from './App.module.scss';

export default () => {
const [transparent, setTransparent] = React.useState(true);
Expand Down
6 changes: 3 additions & 3 deletions src/settings-renderer/components/GeneralSettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ declare const window: WindowWithAPIs;

import React from 'react';

import Modal from './Modal';
import Swirl from './Swirl';
import Checkbox from './Checkbox';
import Modal from './widgets/Modal';
import Swirl from './widgets/Swirl';
import Checkbox from './widgets/Checkbox';

interface IProps {
visible: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/settings-renderer/components/MenuThemesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import React from 'react';

import Modal from './Modal';
import Modal from './widgets/Modal';

interface IProps {
visible: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-FileCopyrightText: Simon Schneegans <[email protected]>
// SPDX-License-Identifier: MIT

@import '../variable.scss';
@import '../../variable.scss';

.button {
display: inline-flex;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-FileCopyrightText: Simon Schneegans <[email protected]>
// SPDX-License-Identifier: MIT

@import '../variable.scss';
@import '../../variable.scss';

.checkbox {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-FileCopyrightText: Simon Schneegans <[email protected]>
// SPDX-License-Identifier: MIT

@import '../variable.scss';
@import '../../variable.scss';

.headerbar {
color: $text-primary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-FileCopyrightText: Simon Schneegans <[email protected]>
// SPDX-License-Identifier: MIT

@import '../variable.scss';
@import '../../variable.scss';

.modalBackground {
-webkit-app-region: no-drag;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@

import React from 'react';
import { CSSTransition } from 'react-transition-group';

import { RiCloseLargeFill } from 'react-icons/ri';

import Headerbar from './Headerbar';
import Button from './Button';

import * as classes from './Modal.module.scss';
import Button from './Button';

interface IProps {
visible: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// SPDX-FileCopyrightText: Simon Schneegans <[email protected]>
// SPDX-License-Identifier: MIT

@import '../variable.scss';
@import '../../variable.scss';

.sidebar {
background-color: $background-normal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import React from 'react';

const swirl = require('../../../assets/images/swirl1.svg');
const swirl = require('../../../../assets/images/swirl1.svg');

export default () => {
return (
Expand Down

0 comments on commit 5db6213

Please sign in to comment.