Resize calendar clock, update dashboard width and add dolphin links to directories.
This commit is contained in:
@@ -8,27 +8,14 @@ const Directories = () => {
|
||||
Widget.Box({
|
||||
vertical: true,
|
||||
expand: true,
|
||||
class_name: "section left",
|
||||
class_name: "section right",
|
||||
children: [
|
||||
Widget.Button({
|
||||
hpack: "start",
|
||||
expand: true,
|
||||
class_name: "directory-link documents",
|
||||
on_primary_click: () => {
|
||||
Utils.execAsync("dolphin Documents").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Documents",
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
hpack: "start",
|
||||
expand: true,
|
||||
class_name: "directory-link downloads",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin Downloads").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
@@ -38,46 +25,12 @@ const Directories = () => {
|
||||
label: " Downloads",
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
expand: true,
|
||||
hpack: "start",
|
||||
class_name: "directory-link home",
|
||||
on_primary_click: () => {
|
||||
Utils.execAsync("dolphin ").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Home",
|
||||
}),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
Widget.Box({
|
||||
vertical: true,
|
||||
expand: true,
|
||||
class_name: "section right",
|
||||
children: [
|
||||
Widget.Button({
|
||||
expand: true,
|
||||
hpack: "start",
|
||||
class_name: "directory-link pictures",
|
||||
on_primary_click: () => {
|
||||
Utils.execAsync("dolphin Pictures").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Pictures",
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
expand: true,
|
||||
hpack: "start",
|
||||
class_name: "directory-link videos",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin Videos").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
@@ -92,6 +45,7 @@ const Directories = () => {
|
||||
hpack: "start",
|
||||
class_name: "directory-link projects",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin Projects").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
@@ -103,6 +57,58 @@ const Directories = () => {
|
||||
}),
|
||||
],
|
||||
}),
|
||||
Widget.Box({
|
||||
vertical: true,
|
||||
expand: true,
|
||||
class_name: "section left",
|
||||
children: [
|
||||
Widget.Button({
|
||||
hpack: "start",
|
||||
expand: true,
|
||||
class_name: "directory-link documents",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin Documents").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Documents",
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
expand: true,
|
||||
hpack: "start",
|
||||
class_name: "directory-link pictures",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin Pictures").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Pictures",
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
expand: true,
|
||||
hpack: "start",
|
||||
class_name: "directory-link home",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
Utils.execAsync("dolphin ").catch(
|
||||
(err) => `Failed to open Dolphin: ${err}`,
|
||||
);
|
||||
},
|
||||
child: Widget.Label({
|
||||
hpack: "start",
|
||||
label: " Home",
|
||||
}),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user