-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,571 additions
and
119 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
# Resources | ||
fs = import('fs') | ||
subdir('icons') | ||
|
||
# stylesheet_deps = [] | ||
# sassc = find_program('sassc') | ||
|
||
# if sassc.found() | ||
# sassc_opts = [ '-a', '-M', '-t', 'compact' ] | ||
|
||
# scss_files = [ | ||
# 'style', | ||
# 'style-dark', | ||
# ] | ||
|
||
# foreach scss: scss_files | ||
# stylesheet_deps += custom_target('@[email protected]'.format(scss), | ||
# input: '@[email protected]'.format(scss), | ||
# output: '@[email protected]'.format(scss), | ||
# command: [ | ||
# sassc, sassc_opts, '@INPUT@', '@OUTPUT@', | ||
# ], | ||
# ) | ||
# endforeach | ||
# endif | ||
|
||
|
||
resources = gnome.compile_resources( | ||
'resources', | ||
'resources.gresource.xml', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use glib::{prelude::*, subclass::prelude::*}; | ||
|
||
use super::{bin_imp as imp, utils::TwlWidgetExt}; | ||
|
||
glib::wrapper! { | ||
pub struct Bin(ObjectSubclass<imp::Bin>) | ||
@extends gtk::Widget, adw::Bin, | ||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget; | ||
} | ||
|
||
impl Bin { | ||
pub fn new(child: &impl IsA<gtk::Widget>) -> Self { | ||
glib::Object::builder().property("child", child).build() | ||
} | ||
} | ||
|
||
impl Default for Bin { | ||
fn default() -> Self { | ||
glib::Object::builder().build() | ||
} | ||
} | ||
impl TwlWidgetExt for Bin {} |
Oops, something went wrong.