diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 50a6ffc..4bf0c8e 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-catalog', - version: '1.0.210', + version: '1.0.211', description: 'website for lossless.com' } diff --git a/ts_web/elements/dees-dataview-codebox.ts b/ts_web/elements/dees-dataview-codebox.ts index fb62b5d..3e4bdb7 100644 --- a/ts_web/elements/dees-dataview-codebox.ts +++ b/ts_web/elements/dees-dataview-codebox.ts @@ -1,4 +1,4 @@ -import { demoFunc } from './dees-dataview-codebox.demo.js'; +import { demoFunc } from './dees-dataview-codebox.demo.js'; import { DeesElement, html, @@ -6,6 +6,7 @@ import { type TemplateResult, property, state, + cssManager, } from '@design.estate/dees-element'; import hlight from 'highlight.js'; @@ -13,6 +14,7 @@ import hlight from 'highlight.js'; import * as smartstring from '@push.rocks/smartstring'; import * as domtools from '@design.estate/dees-domtools'; +import { DeesContextmenu } from './dees-contextmenu.js'; declare global { interface HTMLElementTagNameMap { @@ -58,11 +60,11 @@ export class DeesDataviewCodebox extends DeesElement { } .appbar { + color: ${cssManager.bdTheme('#333', '#ccc')}; + background: ${cssManager.bdTheme('#ffffff', '#161616')}; + border-bottom: 1px solid ${cssManager.bdTheme('#eeeeeb', '#222222')}; height: 24px; - background: #161616; - border-bottom: 1px solid #222222; font-size: 12px; - color: #CCC; font-family: 'Hubot Sans', 'monospace'; line-height: 24px; } @@ -88,15 +90,15 @@ export class DeesDataviewCodebox extends DeesElement { } .appbar .macControls div.close { - background: #FF5F57; + background: #ff5f57; } .appbar .macControls div.toDock { - background: #FFBD2E; + background: #ffbd2e; } .appbar .macControls div.minMax { - background: #27C93F; + background: #27c93f; } .appbar .macControls div:hover { @@ -108,11 +110,11 @@ export class DeesDataviewCodebox extends DeesElement { } .bottomBar { + color: ${cssManager.bdTheme('#333', '#ccc')}; + background: ${cssManager.bdTheme('#ffffff', '#161616')}; + border-top: 1px solid ${cssManager.bdTheme('#eeeeeb', '#222222')}; height: 24px; - background: #161616; - border-top: 1px solid #222222; font-size: 12px; - color: #888; font-family: 'Hubot Sans', 'monospace'; line-height: 24px; text-align: right; @@ -120,7 +122,7 @@ export class DeesDataviewCodebox extends DeesElement { } .languageLabel { - color: #ccc; + color: ${cssManager.bdTheme('#333', '#ccc')}; font-size: 12px; line-height: 24px; z-index: 10; @@ -143,7 +145,6 @@ export class DeesDataviewCodebox extends DeesElement { } .lineNumbers { - color: ${this.goBright ? '#acacac' : '#666666'}; padding: 30px 16px 0px 0px; text-align: right; @@ -194,7 +195,20 @@ export class DeesDataviewCodebox extends DeesElement { color: ${this.goBright ? '#EF9300' : '#ffd765'}; } -
+
diff --git a/ts_web/elements/dees-icon.demo.ts b/ts_web/elements/dees-icon.demo.ts new file mode 100644 index 0000000..c58db3c --- /dev/null +++ b/ts_web/elements/dees-icon.demo.ts @@ -0,0 +1,55 @@ +import { html } from '@design.estate/dees-element'; + +import { faIcons } from './dees-icon.js'; + +export const demoFunc = () => html` + + +
+ ${Object.keys(faIcons).map( + (iconName) => html` +
+ +
${iconName}
+
+ ` + )} +
+ +`; diff --git a/ts_web/elements/dees-icon.ts b/ts_web/elements/dees-icon.ts index fb9ae10..9053853 100644 --- a/ts_web/elements/dees-icon.ts +++ b/ts_web/elements/dees-icon.ts @@ -29,6 +29,7 @@ import { faMessage as faMessageRegular, faPaste as faPasteRegular, faSun as faSunRegular, + faTrashCan as faTrashCanRegular, } from '@fortawesome/free-regular-svg-icons'; import { faArrowRight as faArrowRightSolid, @@ -57,8 +58,11 @@ import { faUsers as faUsersSolid, faShare as faShareSolid, faSun as faSunSolid, + faTrash as faTrashSolid, + faTrashCan as faTrashCanSolid, faXmark as faXmarkSolid, } from '@fortawesome/free-solid-svg-icons'; +import { demoFunc } from './dees-icon.demo.js'; export const faIcons = { // normal @@ -111,6 +115,11 @@ export const faIcons = { shareSolid: faShareSolid, sun: faSunRegular, sunSolid: faSunSolid, + trash: faTrashSolid, + trashSolid: faTrashSolid, + trashCan: faTrashCanRegular, + trashCanSolid: faTrashCanSolid, + users: faUsersSolid, xmark: faXmarkSolid, xmarkSolid: faXmarkSolid, // brands @@ -122,7 +131,6 @@ export const faIcons = { slack: faSlackHash, tiktok: faTiktok, twitter: faTwitter, - users: faUsersSolid, }; export type TIconKey = keyof typeof faIcons; @@ -135,24 +143,7 @@ declare global { @customElement('dees-icon') export class DeesIcon extends DeesElement { - public static demo = () => html` - -
- - - - - - -
- `; + public static demo = demoFunc; @property({ type: String