diff --git a/packages/chrome/README.md b/packages/chrome/README.md index 5852ffd..379dbf5 100644 --- a/packages/chrome/README.md +++ b/packages/chrome/README.md @@ -28,7 +28,7 @@

- preview + preview

# Installation diff --git a/packages/chrome/store/chrome-aura-theme.zip b/packages/chrome/store/chrome-aura-theme.zip index 754ec5c..7944fc3 100644 Binary files a/packages/chrome/store/chrome-aura-theme.zip and b/packages/chrome/store/chrome-aura-theme.zip differ diff --git a/packages/chrome/store/preview.png b/packages/chrome/store/preview.png index 8d68a6e..62b3e3e 100644 Binary files a/packages/chrome/store/preview.png and b/packages/chrome/store/preview.png differ diff --git a/packages/chrome/store/small-tile-preview.png b/packages/chrome/store/small-tile-preview.png index 7b2bab3..a9886ec 100644 Binary files a/packages/chrome/store/small-tile-preview.png and b/packages/chrome/store/small-tile-preview.png differ diff --git a/src/core/colors/schemes/common.ts b/src/core/colors/schemes/common.ts index ac20b94..7032162 100644 --- a/src/core/colors/schemes/common.ts +++ b/src/core/colors/schemes/common.ts @@ -44,6 +44,7 @@ export const commonUI = { accent36: '#a19c77', // debugging background accent37: '#353424', // breakpoint frame highlight accent38: '#29263c', // primary-selection without alpha + accent39: '#211D26', } export const commonSoftUI = { diff --git a/src/ports/chrome/extra/store/preview.png b/src/ports/chrome/extra/store/preview.png index 8d68a6e..62b3e3e 100644 Binary files a/src/ports/chrome/extra/store/preview.png and b/src/ports/chrome/extra/store/preview.png differ diff --git a/src/ports/chrome/extra/store/small-tile-preview.png b/src/ports/chrome/extra/store/small-tile-preview.png index 7b2bab3..a9886ec 100644 Binary files a/src/ports/chrome/extra/store/small-tile-preview.png and b/src/ports/chrome/extra/store/small-tile-preview.png differ diff --git a/src/ports/chrome/extra/theme_tab_background.png b/src/ports/chrome/extra/theme_tab_background.png deleted file mode 100644 index ff833b2..0000000 Binary files a/src/ports/chrome/extra/theme_tab_background.png and /dev/null differ diff --git a/src/ports/chrome/index.ts b/src/ports/chrome/index.ts index 2f36df9..e3d6c39 100644 --- a/src/ports/chrome/index.ts +++ b/src/ports/chrome/index.ts @@ -3,28 +3,29 @@ import { resolve } from 'path' export async function ChromePort(Aura: AuraAPI) { const { - copyExtraFiles, + zip, + unlink, + constants, createPort, createReadme, colorSchemes, colorHandlers, - constants, - zip, - unlink, + copyExtraFiles, } = Aura - const { info } = constants + const { info, isProd } = constants const portName = 'Google Chrome' - const version = '1.0.2' + const version = '2.0.0' const extensionID = 'ddipnaombfnagpagnpdkdinoekfhfjoh' - const previewURL = `https://github.com/${info.author.username}/assets/blob/master/images/${info.slug}/aura-chrome-preview.png?raw=true` const templateFolder = resolve(__dirname, 'templates') + const previewURL = `https://github.com/${info.author.username}/${info.slug}/assets/1149845/b6400889-80a0-4d63-97c9-f816a6bc24be` await copyExtraFiles(__dirname) await createPort({ template: resolve(templateFolder, 'manifest.json'), + replacements: { ...colorHandlers.schemeToRgb(colorSchemes.dark), ...info, @@ -34,25 +35,24 @@ export async function ChromePort(Aura: AuraAPI) { await createReadme({ template: resolve(templateFolder, 'README.md'), + replacements: { portName, - extensionID, previewURL, + extensionID, }, }) const chromePackagePath = resolve('packages', 'chrome') const manifestFile = resolve(chromePackagePath, 'manifest.json') - const backgroundFile = resolve( - chromePackagePath, - 'theme_tab_background.png' - ) + if (isProd) { + zip.addFile(manifestFile) - zip.addFile(manifestFile) - zip.addFile(backgroundFile) - zip.writeZip(resolve(chromePackagePath, 'store', 'chrome-aura-theme.zip')) + zip.writeZip( + resolve(chromePackagePath, 'store', 'chrome-aura-theme.zip') + ) - await unlink(manifestFile) - await unlink(backgroundFile) + await unlink(manifestFile) + } } diff --git a/src/ports/chrome/templates/manifest.json b/src/ports/chrome/templates/manifest.json index 885c16c..0c73fc4 100644 --- a/src/ports/chrome/templates/manifest.json +++ b/src/ports/chrome/templates/manifest.json @@ -6,7 +6,7 @@ "colors" : { "frame": [{{ accent12 }}], "frame_inactive": [{{ accent30 }}], - "toolbar": [{{ accent12 }}], + "toolbar": [{{ accent39 }}], "toolbar_button_icon": [{{ accent2 }}], "ntp_background": [{{ accent12 }}], "ntp_text": [{{ accent7 }}], @@ -20,12 +20,6 @@ }, "tints" : { "buttons" : [0.33, 0.5, 0.47] - }, - "properties" : { - "ntp_background_alignment" : "bottom" - }, - "images" : { - "theme_toolbar": "theme_tab_background.png" } } } \ No newline at end of file