Skip to content

Commit

Permalink
v4.0.29-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
jemu75 committed Mar 17, 2024
1 parent e4e9767 commit 7e37264
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
3 changes: 3 additions & 0 deletions public/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v4.0.29-beta (17.03.2024)
## Core
- bugfix for change imageGradient in case of changing theme
# v4.0.28-beta (17.03.2024)
## Panel
- bugfix for hide/show Levels
Expand Down
18 changes: 6 additions & 12 deletions src/stores/fhem.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,11 @@ export const useFhemStore = defineStore('fhem', () => {
function changeDarkMode(mode) {
let primaryColor

if(mode !== theme.global.name.value) {
theme.global.name.value = theme.global.name.value === 'dark'? 'light' : 'dark'
if(mode !== theme.global.name.value) theme.global.name.value = theme.global.name.value === 'dark'? 'light' : 'dark'

if(!app.config.header.imageGradient) {
primaryColor = theme.global.current.value.colors.primary
app.header.imageGradient = "to top ," + hexToRgbA(primaryColor, 0.6) + ", " + hexToRgbA(primaryColor, 0.6)
}
if(!app.config.header.imageGradient) {
primaryColor = theme.global.current.value.colors.primary
app.header.imageGradient = "to top ," + hexToRgbA(primaryColor, 0.6) + ", " + hexToRgbA(primaryColor, 0.6)
}
}

Expand Down Expand Up @@ -330,8 +328,7 @@ export const useFhemStore = defineStore('fhem', () => {
async function loadConfig() {
let res = await request('text', 'get ' + app.fhemDevice + ' config'),
resText,
cfg,
primaryColor
cfg

if(RegExp('Please define '+ app.fhemDevice +' first').test(res)) {
log(2, 'Wrong FHEM Config-Device in URL.', { fhemResult: res }, 'wrongDevice')
Expand Down Expand Up @@ -380,10 +377,7 @@ export const useFhemStore = defineStore('fhem', () => {

//merge header
Object.assign(app.header, JSON.parse(JSON.stringify(app.config.header)))
if(!app.header.imageGradient) {
primaryColor = theme.global.current.value.colors.primary
app.header.imageGradient = "to top ," + hexToRgbA(primaryColor, 0.6) + ", " + hexToRgbA(primaryColor, 0.6)
}
changeDarkMode(theme.global.name.value)

log(4, 'Config loaded.', cfg)
return true
Expand Down
3 changes: 3 additions & 0 deletions www/fhemapp4/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v4.0.29-beta (17.03.2024)
## Core
- bugfix for change imageGradient in case of changing theme
# v4.0.28-beta (17.03.2024)
## Panel
- bugfix for hide/show Levels
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion www/fhemapp4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta name="apple-mobile-web-app-capable" content="yes">

<title>FHEMApp v4</title>
<script type="module" crossorigin src="./assets/index-6f0816ee.js"></script>
<script type="module" crossorigin src="./assets/index-d52da19e.js"></script>
<link rel="stylesheet" href="./assets/index-4f65342b.css">
</head>
<body>
Expand Down

0 comments on commit 7e37264

Please sign in to comment.