File tree Expand file tree Collapse file tree 3 files changed +76
-17
lines changed Expand file tree Collapse file tree 3 files changed +76
-17
lines changed Original file line number Diff line number Diff line change @@ -1306,3 +1306,60 @@ svg {
13061306 border : 2px solid black !important ;
13071307 }
13081308}
1309+
1310+ // Flat overrides
1311+ .theme-flat {
1312+ .header {
1313+ color : black ;
1314+ background : white ;
1315+ border-bottom : #f5f4f7 1px solid ;
1316+ }
1317+
1318+ #codes {
1319+ background : #fcfbff ;
1320+
1321+ .entry {
1322+ border : #f5f4f7 1px solid ;
1323+ border-radius : 8px ;
1324+ }
1325+ }
1326+
1327+ #menu {
1328+ #menuBody {
1329+ background : #fcfbff ;
1330+
1331+ .menuList {
1332+ margin : 10px ;
1333+ border-radius : 8px ;
1334+ border : #f5f4f7 1px solid ;
1335+ background : white ;
1336+
1337+ p {
1338+ color : #727272 ;
1339+
1340+ span svg {
1341+ fill : #727272 ;
1342+ }
1343+ }
1344+ }
1345+ }
1346+
1347+ #version {
1348+ bottom : 0px ;
1349+ position : relative ;
1350+ margin : 10px auto ;
1351+ width : 100% ;
1352+ color : #727272 ;
1353+ font-size : 0.9em ;
1354+ }
1355+
1356+ #info {
1357+ border-radius : 8px ;
1358+ border : #f5f4f7 1px solid ;
1359+
1360+ .control-group {
1361+ border-bottom : #f5f4f7 1px solid ;
1362+ }
1363+ }
1364+ }
1365+ }
Original file line number Diff line number Diff line change 66 theme !== 'accessibility' &&
77 theme !== 'dark' &&
88 theme !== 'simple' &&
9- theme !== 'compact',
9+ theme !== 'compact' &&
10+ theme !== 'flat',
1011 'theme-accessibility': theme === 'accessibility',
1112 'theme-dark': theme === 'dark',
1213 'theme-simple': theme === 'simple',
1314 'theme-compact': theme === 'compact',
15+ 'theme-flat': theme === 'flat',
1416 hideoutline,
1517 }"
1618 v-on:mousedown =" hideoutline = true"
Original file line number Diff line number Diff line change @@ -660,22 +660,22 @@ export class ManagedStorage {
660660 static get < T > ( key : string , defaultValue : T ) : T ;
661661 static get < T > ( key : string , defaultValue ?: T ) {
662662 return new Promise ( ( resolve : ( result : T | undefined ) => void ) => {
663- if ( chrome . storage . managed ) {
664- chrome . storage . managed . get ( ( data ) => {
665- if ( chrome . runtime . lastError ) {
666- return resolve ( defaultValue ) ;
667- }
668- if ( data ) {
669- if ( data [ key ] ) {
670- return resolve ( data [ key ] ) ;
671- }
672- }
673- return resolve ( defaultValue ) ;
674- } ) ;
675- } else {
676- // no available in Safari
677- resolve ( defaultValue ) ;
678- }
663+ if ( chrome . storage . managed ) {
664+ chrome . storage . managed . get ( ( data ) => {
665+ if ( chrome . runtime . lastError ) {
666+ return resolve ( defaultValue ) ;
667+ }
668+ if ( data ) {
669+ if ( data [ key ] ) {
670+ return resolve ( data [ key ] ) ;
671+ }
672+ }
673+ return resolve ( defaultValue ) ;
674+ } ) ;
675+ } else {
676+ // no available in Safari
677+ resolve ( defaultValue ) ;
678+ }
679679 } ) ;
680680 }
681681}
You can’t perform that action at this time.
0 commit comments