ags: add config option for gtk anim duration

This commit is contained in:
end-4
2024-03-04 22:35:07 +07:00
parent 132bc97c83
commit f5885e444c
26 changed files with 60 additions and 87 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ const ProviderSwitcher = () => {
const providerList = Revealer({
revealChild: false,
transition: 'slide_down',
transitionDuration: 180,
transitionDuration: userOptions.animations.durationLarge,
child: Box({
vertical: true, className: 'spacing-v-5 sidebar-chat-providerswitcher-list',
children: [
@@ -209,7 +209,7 @@ export const OpenaiApiKeyInstructions = () => Box({
homogeneous: true,
children: [Revealer({
transition: 'slide_down',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationLarge,
setup: (self) => self
.hook(GPTService, (self, hasKey) => {
self.revealChild = (GPTService.key.length == 0);
+1 -1
View File
@@ -113,7 +113,7 @@ export const GoogleAiInstructions = () => Box({
homogeneous: true,
children: [Revealer({
transition: 'slide_down',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationLarge,
setup: (self) => self
.hook(GeminiService, (self, hasKey) => {
self.revealChild = (GeminiService.key.length == 0);
+3 -3
View File
@@ -70,7 +70,7 @@ const WaifuImage = (taglist) => {
const downloadState = Stack({
homogeneous: false,
transition: 'slide_up_down',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationSmall,
children: {
'api': ImageState('api', 'Calling API'),
'download': ImageState('downloading', 'Downloading image'),
@@ -128,7 +128,7 @@ const WaifuImage = (taglist) => {
});
const blockImageRevealer = Revealer({
transition: 'slide_down',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationLarge,
revealChild: false,
child: Overlay({
child: Box({
@@ -328,7 +328,7 @@ export const waifuView = Scrollable({
const waifuTags = Revealer({
revealChild: false,
transition: 'crossfade',
transitionDuration: 150,
transitionDuration: userOptions.animations.durationLarge,
child: Box({
className: 'spacing-h-5',
children: [
+3 -3
View File
@@ -136,7 +136,7 @@ const chatPlaceholder = Label({
const chatPlaceholderRevealer = Revealer({
revealChild: true,
transition: 'crossfade',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
child: chatPlaceholder,
setup: enableClickthrough,
});
@@ -157,7 +157,7 @@ const textboxArea = Box({ // Entry area
const apiContentStack = Stack({
vexpand: true,
transition: 'slide_left_right',
transitionDuration: 160,
transitionDuration: userOptions.animations.durationLarge,
children: APIS.reduce((acc, api) => {
acc[api.name] = api.contentWidget;
return acc;
@@ -166,7 +166,7 @@ const apiContentStack = Stack({
const apiCommandStack = Stack({
transition: 'slide_up_down',
transitionDuration: 160,
transitionDuration: userOptions.animations.durationLarge,
children: APIS.reduce((acc, api) => {
acc[api.name] = api.commandBar;
return acc;
+1 -1
View File
@@ -38,7 +38,7 @@ export default ({
const content = Revealer({
revealChild: revealChild,
transition: 'slide_down',
transitionDuration: 200,
transitionDuration: userOptions.animations.durationLarge,
child: Box({
className: 'margin-top-5',
homogeneous: true,