ubuntu / yaru.dart

Ubuntu Yaru Flutter widgets and themes for building desktop and web applications
https://ubuntu.github.io/yaru.dart/
Mozilla Public License 2.0
214 stars 35 forks source link

Window control spacing #523

Closed jpnurmi closed 1 year ago

jpnurmi commented 1 year ago

GtkHeaderBar and YaruTitleBar have a different spacing (observed 22.10).

image

import 'package:flutter/material.dart';
import 'package:yaru/yaru.dart';
import 'package:yaru_widgets/yaru_widgets.dart';

Future<void> main() async {
  runApp(
    MaterialApp(
      theme: yaruLight,
      darkTheme: yaruDark,
      debugShowCheckedModeBanner: false,
      home: const Scaffold(
        appBar: YaruWindowTitleBar(
          title: Text('YaruWindowTitleBar'),
        ),
      ),
    ),
  );
}
Jupi007 commented 1 year ago

It is normal, the headerbar is a gtk3 one, but we use the same spacing as libadwaita, which is smaller 🙂

jpnurmi commented 1 year ago

Ahh, thanks! I didn't realize the difference between gtk3 and libadwaita, sorry! Never mind :)

Jupi007 commented 1 year ago

No problem. To be honest, I had the same thought a few day ago 😅 Then I remembered libadwaita difference!