Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
b60c9e0
Added Adw.Clamp Demo
SoNiC-HeRE Jun 4, 2023
20e2645
Made Changes and fixed error
SoNiC-HeRE Jun 6, 2023
57a2164
Updated Link
SoNiC-HeRE Jun 6, 2023
094a90e
library: Add Font Dialog Entry (#244)
SoNiC-HeRE Jun 3, 2023
fe0ba61
library: add PreferencesWindow entry (#297)
halfmexican Jun 3, 2023
0719690
library: Add WebView entry (#299)
AkshayWarrier Jun 3, 2023
76a9e6c
library: Add Boxed lists entry (#210)
krlade Jun 3, 2023
5308958
Library: add Drag-and-Drop entry (#253)
halfmexican Jun 7, 2023
f1b55ad
library: Add TabView entry (#304)
AkshayWarrier Jun 7, 2023
c42cf4f
Library: Add Drawing area (#261)
bazylevnik0 Jun 7, 2023
0717088
Add Jose as a contributor (#310)
halfmexican Jun 10, 2023
3c8e02a
library: Add Advanced Buttons entry (#300)
AkshayWarrier Jun 10, 2023
c528aff
library: Remove unused css file
sonnyp Jun 10, 2023
8b02eb2
library: Adds Adw.AboutWindow entry (#305)
SoNiC-HeRE Jun 13, 2023
27ad35e
library: Add Animation entry (#306)
AkshayWarrier Jun 14, 2023
d4f2030
library: Adds TextView entry (#315)
SoNiC-HeRE Jun 14, 2023
4af4c78
library: Minor improvements
sonnyp Jun 14, 2023
194bf06
library: add css example (#314)
halfmexican Jun 14, 2023
e806f32
Library: Drawing Area, reduce dependencies (#327)
bazylevnik0 Jun 14, 2023
612c0b7
library: Add SpinButton entry (#312)
AkshayWarrier Jun 14, 2023
c99a39f
library: Add AdwBanner entry (#313)
AkshayWarrier Jun 14, 2023
b07d6e7
library: add Carousel entry (#326)
halfmexican Jun 15, 2023
4ea75be
library: Do not use async handlers (#339)
sonnyp Jun 15, 2023
ed3c64e
library: Adds Color Picker entry (#335)
SoNiC-HeRE Jun 17, 2023
412cfa2
library: Add Email Entry (#330)
SoNiC-HeRE Jun 17, 2023
3296570
library: Update Progress Bar demo (#324)
AkshayWarrier Jun 17, 2023
cf3e707
library: Add Wallpaper entry (#333)
SoNiC-HeRE Jun 18, 2023
97c0707
library: add DropDown entry (#323)
halfmexican Jun 19, 2023
a9519cc
overrides: GTypeName can be computed from the class
sonnyp Jun 19, 2023
64dcb8f
library: add Gtk.Video Demo (#340)
halfmexican Jun 19, 2023
c245205
Previewer: add Copying Screenshots to clipboard (#352)
halfmexican Jun 19, 2023
48554ea
library: Add Revealer entry (#331)
AkshayWarrier Jun 20, 2023
9f88fb9
library: Add Account entry (#353)
SoNiC-HeRE Jun 20, 2023
54d25cc
library: add Stack entry (#345)
halfmexican Jun 21, 2023
3ba4740
library: Fix Stack demo
sonnyp Jun 21, 2023
af9f572
Library: Add StatusPage Demo (#256)
Datagirlcmr Jun 21, 2023
123a289
library: Add Frame Entry (#317)
SoNiC-HeRE Jun 22, 2023
265f8ef
Previewer: do not update on any settings change
sonnyp Jun 22, 2023
8b3a748
library: Update StatusPage demo (#360)
sonnyp Jun 22, 2023
f9471de
v44.2
sonnyp Jun 23, 2023
d4c3418
flatpak: Copy vls and deps from the vala sdk (#273)
lw64 Jun 24, 2023
354374f
Add an internal GI library for Workbench (#371)
andyholmes Jun 28, 2023
a0a5485
library: Add libshumate entry (#357)
AkshayWarrier Jun 28, 2023
d27dac2
Build modules documentation
sonnyp Jun 28, 2023
255807e
Add python3-gi-docgen module
sonnyp Jun 28, 2023
59eb77d
library: port Drag and Drop entry to Vala (#341)
halfmexican Jun 28, 2023
b2368d0
library: Add Search entry (#343)
AkshayWarrier Jun 28, 2023
3445816
previewer: Fix namespace logic (#366)
sonnyp Jun 29, 2023
24d9f36
Add Documentation Viewer (#358)
AkshayWarrier Jun 29, 2023
8b00baa
library: Add ListModel Entry (#361)
SoNiC-HeRE Jul 4, 2023
ec609a4
library: add Audio demo (#354)
halfmexican Jul 5, 2023
121e11e
library: add Event Controllers entry (#356)
halfmexican Jul 5, 2023
38ca0f2
library: Add Actionbar entry (#376)
SoNiC-HeRE Jul 6, 2023
306b694
library: Add location entry (#355)
SoNiC-HeRE Jul 6, 2023
9a52a8c
Use diagnostics from gtkcsslanguageserver (#391)
JCWasmx86 Jul 9, 2023
27921ef
library: Add Check Button demo (#337)
AkshayWarrier Jul 13, 2023
34b5fb1
library: Split Checkbutton demo (#396)
sonnyp Jul 14, 2023
02a8a33
library: Split Checkbutton demo (#396)
sonnyp Jul 14, 2023
e98f785
DocumentationViewer: Add missing docs from gtk-doc (#394)
AkshayWarrier Jul 14, 2023
9930df4
library: Add vala demo for Text Fields (#389)
SpikedPaladin Jul 15, 2023
5d75f31
Multi windows / sessions support (#363)
sonnyp Jul 16, 2023
5ee60b0
library: Adds ListView Entry (#395)
SoNiC-HeRE Jul 18, 2023
442e42e
library: Add separator entry (#427)
SoNiC-HeRE Jul 18, 2023
30b1a01
library: Add Link Button entry (#433)
AkshayWarrier Jul 19, 2023
f79261e
library: Add Actions entry (#397)
AkshayWarrier Jul 19, 2023
fe64976
library: Add Tooltip entry (#425)
AkshayWarrier Jul 19, 2023
cda569e
library: Add Flow Box entry (#399)
AkshayWarrier Jul 20, 2023
66606df
library: Add EmojiChooser entry (#400)
AkshayWarrier Jul 20, 2023
2665888
library: Port HTTP Image, Color Dialog demos to Vala (#430)
Diego-Ivan Jul 22, 2023
1c5d3c9
library: Add vala demo for Scale (#426)
SpikedPaladin Jul 22, 2023
37bb238
library: add Editable Label Entry (#392)
halfmexican Jul 22, 2023
12de951
library: add Drop Zone Entry (#386)
halfmexican Jul 22, 2023
fb45570
library: add Label entry (#393)
halfmexican Jul 22, 2023
92cd129
Update to Blueprint 0.10.0 (#442)
AkshayWarrier Jul 23, 2023
d68ad20
Library: add Scale Button to Scale Entry (#439)
halfmexican Jul 23, 2023
88a4c72
Library: Port Stack entry to Vala (#435)
halfmexican Jul 24, 2023
d898038
library: Add vala demo for Preferences Window (#401)
SpikedPaladin Jul 24, 2023
dd161cd
library: add Menu Button entry (#432)
halfmexican Jul 24, 2023
45f7828
library: Port ListModel and List View Widgets demos to Vala (#446)
Diego-Ivan Jul 26, 2023
658db17
Don't mention names in the fixme (#458)
Hofer-Julian Jul 30, 2023
4c47437
library: Add Vala version for AboutWindow (#451)
fiaxh Jul 30, 2023
4498e4a
library: Add vala demo for Button (#447)
SpikedPaladin Jul 31, 2023
f5420d1
library: port Spinner demo to Vala (#450)
mar-v-in Jul 31, 2023
1fb919b
Enable autorun for Drag and Drop (#462)
TheEvilSkeleton Aug 1, 2023
8b239bf
Support saving and loading projects (#466)
sonnyp Aug 3, 2023
df2d39d
Documentation Viewer: Filter irrelevant docs (#398)
AkshayWarrier Aug 4, 2023
b1b4b26
Update Library entries (#469)
sonnyp Aug 4, 2023
1fdd1be
Remove application in workbench-api.vala (#471)
Hofer-Julian Aug 5, 2023
b38dc11
Rename workbench-api.vala to workbench.vala (#472)
Hofer-Julian Aug 6, 2023
7a5dc4d
library: Use relative paths (#470)
sonnyp Aug 6, 2023
606429f
library: Add Image entry (#436)
AkshayWarrier Aug 6, 2023
827d12a
Improve Vala previewer (#473)
sonnyp Aug 7, 2023
b8dfd24
GNOME 45 (#475)
sonnyp Aug 7, 2023
2aca462
library: add switch row (#448)
halfmexican Jul 30, 2023
332ba2d
library: Add spin row to boxed list entry (#461)
halfmexican Aug 7, 2023
f934bf8
Update dependencies
sonnyp Aug 7, 2023
2ddd5d0
library: Adds columnview entry (#437)
SoNiC-HeRE Aug 7, 2023
f59e4ad
Fix build when appstream folder is absent
sonnyp Aug 7, 2023
1c02ddd
library: Add Menu entry (#445)
AkshayWarrier Aug 8, 2023
0fc1291
build: fix warnings from meson
andyholmes Aug 8, 2023
90c7362
fix: add unimplemented method to `Workbench.CompletionRequest`
andyholmes Aug 8, 2023
a7a3670
library: Adds file/uri launcher entry (#403)
SoNiC-HeRE Aug 9, 2023
040f6ef
library: Add vala demo for Text View (#476)
SpikedPaladin Aug 10, 2023
2c7b23a
library: Some improvements to the Launcher demo
sonnyp Aug 9, 2023
83e25d2
build: bump vte to 0.72.2
andyholmes Aug 9, 2023
ce759a9
library: Add Navigation Split View entry (#479)
AkshayWarrier Aug 11, 2023
99e0966
library: Add Scrolled Window entry
AkshayWarrier Jul 19, 2023
be3b60f
Scrolled Window: Minor change
AkshayWarrier Jul 19, 2023
e91a991
Scrolled Window: Enable/disable start and end buttons properly
AkshayWarrier Aug 7, 2023
f78e134
Scrolled Window: Better behaviour
AkshayWarrier Aug 10, 2023
62782b3
library: add Overlay Split View entry (#463)
halfmexican Aug 11, 2023
dfb311b
library: Port system APIs demos to Vala (#483)
Diego-Ivan Aug 11, 2023
76c0b97
library: Port Event Controllers demo to Vala (#486)
Diego-Ivan Aug 12, 2023
6ac62ba
library: Add Power Profile Monitor demo (#489)
AkshayWarrier Aug 13, 2023
aa8bf9f
library: Add Network Monitor demo (#488)
AkshayWarrier Aug 13, 2023
93249f3
improvements
sonnyp Aug 13, 2023
433749f
Merge branch 'main' into Clamp
sonnyp Aug 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/Library/demos/Clamp/main.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using Gtk 4.0;
using Adw 1;

Adw.StatusPage {
title: "Clamp";
description: "A widget constraining its child to a given size.";

Box {
orientation: vertical;
halign: center;

Box {
halign: center;
spacing: 6;
orientation: horizontal;

Button button_increase {
icon-name: "plus";
}

Button button_decrease {
icon-name: "minus";
}
}

LinkButton {
margin-top: 12;
label: "API Reference";
uri: "https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.3/class.Clamp.html";
}

Adw.Clamp clamp {
margin-top: 24;
maximum-size: 400;
tightening-threshold: 200;
margin-bottom: 24;

Label label {
wrap: true;
label: _("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ");
}
}
}
}


29 changes: 29 additions & 0 deletions src/Library/demos/Clamp/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const button_increase = workbench.builder.get_object("button_increase");
const button_decrease = workbench.builder.get_object("button_decrease");
const clamp = workbench.builder.get_object("clamp");

function increase() {
const current_size = clamp.get_maximum_size();
const current_threshold = clamp.get_tightening_threshold();
clamp.maximum_size = current_size + 300;
clamp.tightening_threshold = current_threshold + 200;

if (clamp.tightening_threshold === 1000) {
console.log("Maximum size reached");
}
}

function decrease() {
const current_size = clamp.get_maximum_size();
const current_threshold = clamp.get_tightening_threshold();
clamp.maximum_size = current_size - 300;
clamp.tightening_threshold = current_threshold - 200;

if (clamp.tightening_threshold === 0) {
console.log("Minimum size reached");
}
}

button_increase.connect("clicked", increase);
button_decrease.connect("clicked", decrease);

7 changes: 7 additions & 0 deletions src/Library/demos/Clamp/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "Clamp",
"category": "layout",
"description": "A widget constraining its child to a given size.",
"panels": ["ui", "preview"],
"autorun": true
}