Skip to content

Commit 11db1ba

Browse files
committed
small changes
1 parent 83b898e commit 11db1ba

File tree

6 files changed

+44
-20
lines changed

6 files changed

+44
-20
lines changed

electron_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "DiffusionBee",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"build_number": "0016",
55
"website": "https://diffusionbee.com",
66
"description": "Diffusion Bee - Stable Diffusion App.",

electron_app/src/App.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ export default
170170
if(!data.settings){
171171
data.settings = {}
172172
}
173+
if(data.settings.notification_sound == undefined)
174+
data.settings.notification_sound = true
175+
173176
if(!data.custom_models){
174177
data.custom_models = {}
175178
}

electron_app/src/assets/css/theme.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
h2 {
2727
color: rgba(0, 0, 0, 0.7);
2828
}
29+
h3 {
30+
color: rgba(0, 0, 0, 0.7);
31+
}
2932
p {
3033
color: rgba(0, 0, 0, 0.9);
3134
}
@@ -156,6 +159,9 @@
156159
h2 {
157160
color: rgba(255, 255, 255, 0.7);
158161
}
162+
h3 {
163+
color: rgba(255, 255, 255, 0.7);
164+
}
159165
p {
160166
color: rgba(255, 255, 255, 0.9);
161167
}

electron_app/src/components/History.vue

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
Clear History
2222
</div>
2323
<div v-if="Object.values(app_state.app_data.history).length > 0">
24-
<div v-if="get_history().length > 30">
25-
<b-pagination
26-
v-model="currentPage"
27-
:total-rows="get_history().length"
28-
:per-page="30"
29-
/>
30-
</div>
31-
<div v-for="history_box in get_history().slice((currentPage - 1) * 30, currentPage * 30)" :key="history_box.key" style="clear: both;">
24+
<div v-if="get_history.length > 30">
25+
<b-pagination
26+
v-model="currentPage"
27+
:total-rows="get_history.length"
28+
:per-page="30"
29+
/>
30+
</div>
31+
<div v-for="history_box in get_history.slice((currentPage - 1) * 30, currentPage * 30)" :key="history_box.key" style="clear: both;">
3232

3333

3434
<div @click="delete_hist(history_box.key)" style="float:right; margin-top: 10px;" class="l_button">Delete</div>
@@ -66,7 +66,18 @@
6666
</div>
6767

6868
<hr>
69+
70+
6971
</div>
72+
73+
<div v-if="get_history.length > 30">
74+
<b-pagination
75+
v-model="currentPage"
76+
:total-rows="get_history.length"
77+
:per-page="30"
78+
/>
79+
</div>
80+
7081
</div>
7182
<div v-else>
7283
<div class="center">
@@ -100,12 +111,9 @@ export default {
100111
currentPage: 1,
101112
};
102113
},
103-
methods: {
104-
delete_hist(k){
105-
Vue.delete( this.app_state.app_data.history , k );
106-
},
107114
108-
get_history() {
115+
computed: {
116+
get_history() {
109117
let history = Object.values(this.app_state.app_data.history);
110118
const that = this;
111119
const list = this.app_state.show_history_in_oldest_first ? history : history.reverse();
@@ -120,8 +128,16 @@ export default {
120128
121129
return fuse.search(that.searchText).map(r => r.item);
122130
131+
},
132+
},
133+
134+
methods: {
135+
delete_hist(k){
136+
Vue.delete( this.app_state.app_data.history , k );
123137
},
124138
139+
140+
125141
toggle_order() {
126142
Vue.set( this.app_state, "show_history_in_oldest_first", !this.app_state.show_history_in_oldest_first);
127143
},

electron_app/src/components/Settings.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
<br>
99
<div class="setting_box">
1010
<div class="settings_left">
11-
<h2>Notification sound</h2>
12-
<p>Allows to start a sound when the generation of an image is completed</p>
11+
<h3>Notification sound</h3>
12+
<p>To play a notification sound when generation of an image is completed</p>
1313
</div>
1414
<hr>
1515
<div style="float:right;margin-right: 9px;align-self: center;" >
1616
<label class="switch">
17-
<input type="checkbox" v-model="app_state.app_data.settings.notification_sound" checked>
18-
<span class="toggle round"></span>
19-
</label>
17+
<input type="checkbox" v-model="app_state.app_data.settings.notification_sound" checked>
18+
<span class="toggle round"></span>
19+
</label>
2020
</div>
2121
</div>
2222
<hr>

electron_app/src/components_bare/ApplicationFrame.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ h3 {
291291
align-items: center;
292292
letter-spacing: -0.08px;
293293
294-
color: rgba(0, 0, 0, 0.9);
295294
}
296295
297296

0 commit comments

Comments
 (0)