Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fully transparent window on startup #275

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/terminal/terminal_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:nested_split_view/nested_split_view.dart';
import 'package:provider/provider.dart';
import 'package:terminal_view/terminal_view.dart';
import 'package:ubuntu_service/ubuntu_service.dart';
import 'package:window_manager/window_manager.dart';

import '../settings.dart';
import 'terminal_commands.dart';
Expand Down Expand Up @@ -56,6 +57,8 @@ class _TerminalPageState extends State<_TerminalPage>
void initState() {
super.initState();

windowManager.setBackgroundColor(Colors.transparent);

final manager = context.read<TerminalManager>();
manager.listen(
onCreate: (key, terminal) {
Expand Down
1 change: 0 additions & 1 deletion linux/my_application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ static void my_application_activate(GApplication* application) {
if (gdk_screen_is_composited(screen)) {
GdkVisual* visual = gdk_screen_get_rgba_visual(screen);
if (visual != nullptr) {
gtk_widget_set_app_paintable(GTK_WIDGET(window), true);
gtk_widget_set_visual(GTK_WIDGET(window), visual);
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/title_bar/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ environment:
dependencies:
flutter:
sdk: flutter
window_manager: ^0.2.7
window_manager: # TODO: ^0.2.9
git:
ref: b8188c800928afdbcec1dc0ff3e680c466e9a053
url: https://github.com/leanflutter/window_manager
yaru_icons: ^0.2.6
yaru_widgets: # TODO: ^2.0.0
git:
Expand Down
4 changes: 4 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ dependencies:
git:
url: https://github.com/canonical/ubuntu-flutter-plugins.git
path: packages/ubuntu_widgets
window_manager: # TODO: ^0.2.9
git:
ref: b8188c800928afdbcec1dc0ff3e680c466e9a053
url: https://github.com/leanflutter/window_manager
wizard_router: ^0.9.0
xdg_directories: ^0.2.0+2
yaml: ^3.1.1
Expand Down