Skip to content

Commit

Permalink
reorganize project
Browse files Browse the repository at this point in the history
  • Loading branch information
aminought committed Jul 30, 2024
1 parent 389765a commit edc9061
Show file tree
Hide file tree
Showing 24 changed files with 320 additions and 335 deletions.
4 changes: 2 additions & 2 deletions background/background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Options } from "../options/options.js";
import { Options } from "../shared/options.js";
import { Runtime } from "./runtime.js";
import { Theme } from "../theme/theme.js";
import { Theme } from "../shared/theme.js";

Options.load().then(async (options) => {
const theme = await Theme.load();
Expand Down
4 changes: 2 additions & 2 deletions colors/color_extractor.js → background/color_extractor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Color } from "./color.js";
import { Options } from "../options/options.js";
import { Color } from "../shared/color.js";
import { Options } from "../shared/options.js";

const AVOID_WHITE_OFFSET = 15;
const AVOID_BLACK_OFFSET = 15;
Expand Down
8 changes: 4 additions & 4 deletions background/runtime.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BrowserParts } from "../options/browser_parts.js";
import { Color } from "../colors/color.js";
import { ColorExtractor } from "../colors/color_extractor.js";
import { Options } from "../options/options.js";
import { BrowserParts } from "../shared/browser_parts.js";
import { Color } from "../shared/color.js";
import { ColorExtractor } from "./color_extractor.js";
import { Options } from "../shared/options.js";

export class Runtime {
/**
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
},

"options_ui": {
"page": "options/options_page.html"
"page": "options_ui/page.html"
},

"browser_action": {
"default_icon": "icons/icon.svg",
"default_title": "Favicon Color",
"default_popup": "options/options_page.html"
"default_popup": "options_ui/page.html"
},

"browser_specific_settings": {
Expand Down
300 changes: 0 additions & 300 deletions options/options_page.css

This file was deleted.

Loading

0 comments on commit edc9061

Please sign in to comment.