Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Davide Ferracin
Black Box
Commits
fc14ffef
Commit
fc14ffef
authored
Jul 13, 2022
by
Paulo Queiroz
📦
Browse files
0.11.1 - Bug fixes
- Set BLACKBOX_THEMES_DIR - fixes #82 - User themes folder is no longer hard-coded - #90
parent
2e68a11f
Changes
7
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
fc14ffef
# Changelog
## 0.11.1 - 2022.07.13
Features:
-
Black Box will set the BLACKBOX_THEMES_DIR env variable to the user's theme
folder - #82
Bug fixes:
-
Fix opaque floating header bar
-
User themes dir is no longer hard-coded and will be different for host vs
Flatpak - #90 thanks @nahuelwexd
## 0.11.0 - 2022.07.13
Features:
...
...
data/com.raggesilver.BlackBox.appdata.xml.in
View file @
fc14ffef
...
...
@@ -84,6 +84,19 @@
</kudos>
<releases>
<release
date=
"2022-07-13"
version=
"0.11.1"
>
<description>
<p>
Features:
</p>
<ul>
<li>
Black Box will set the BLACKBOX_THEMES_DIR env variable to the user's Black Box theme folder
</li>
</ul>
<p>
Bugs:
</p>
<ul>
<li>
Fix opaque floating header bar
</li>
<li>
User themes dir is no longer hard-coded and will be different for host install vs Flatpak
</li>
</ul>
</description>
</release>
<release
date=
"2022-07-13"
version=
"0.11.0"
>
<description>
<p>
Features:
</p>
...
...
meson.build
View file @
fc14ffef
project
(
'blackbox'
,
[
'c'
,
'vala'
],
version
:
'0.11.
0
'
,
version
:
'0.11.
1
'
,
meson_version
:
'>= 0.50.0'
,
default_options
:
[
'warning_level=2'
,
],
...
...
src/resources/style.css
View file @
fc14ffef
...
...
@@ -55,7 +55,7 @@ tabbox background {
margin
:
8px
;
}
.floating-revealer
headerbar
{
window
:not
(
.about
)
.floating-revealer
>
headerbar
{
background
:
transparent
;
}
...
...
src/services/ThemeProvider.vala
View file @
fc14ffef
...
...
@@ -210,7 +210,7 @@ public class Terminal.ThemeProvider : Object {
var
f
=
GLib
.
File
.
new_for_path
(
path
);
try
{
f
.
make_directory
();
f
.
make_directory
_with_parents
();
}
catch
(
Error
e
)
{
warning
(
"%s"
,
e
.
message
);
...
...
src/utils/Constants.vala
View file @
fc14ffef
...
...
@@ -37,13 +37,13 @@ namespace Terminal.Constants {
public
string
get_user_schemes_dir
()
{
return
Path
.
build_path
(
Path
.
DIR_SEPARATOR_S
,
Environment
.
get_
home
_dir
(),
"
.var"
,
"app"
,
APP_ID
,
"schemes"
,
null
Path
.
DIR_SEPARATOR_S
,
Environment
.
get_
user_data
_dir
(),
"
blackbox"
,
"schemes"
);
}
public
string
get_app_schemes_dir
()
{
return
Path
.
build_path
(
Path
.
DIR_SEPARATOR_S
,
DATADIR
,
"blackbox"
,
"schemes"
,
null
return
Path
.
build_path
(
Path
.
DIR_SEPARATOR_S
,
DATADIR
,
"blackbox"
,
"schemes"
);
}
}
src/widgets/Terminal.vala
View file @
fc14ffef
...
...
@@ -277,7 +277,8 @@ public class Terminal.Terminal : Vte.Terminal {
envv
+=
"G_MESSAGES_DEBUG=false"
;
envv
+=
"TERM=xterm-256color"
;
envv
+=
@"TERM_PROGRAM=$(APP_NAME)"
;
envv
+=
"TERM_PROGRAM=%s"
.
printf
(
APP_NAME
);
envv
+=
"BLACKBOX_THEMES_DIR=%s"
.
printf
(
Constants
.
get_user_schemes_dir
());
foreach
(
unowned
string
env
in
envv
)
{
argv
+=
@"--env=$(env)"
;
...
...
@@ -287,7 +288,8 @@ public class Terminal.Terminal : Vte.Terminal {
envv
=
Environ
.
get
();
envv
+=
"G_MESSAGES_DEBUG=false"
;
envv
+=
"TERM=xterm-256color"
;
envv
+=
@"TERM_PROGRAM=$(APP_NAME)"
;
envv
+=
"TERM_PROGRAM=%s"
.
printf
(
APP_NAME
);
envv
+=
"BLACKBOX_THEMES_DIR=%s"
.
printf
(
Constants
.
get_user_schemes_dir
());
shell
=
Environ
.
get_variable
(
envv
,
"SHELL"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment