Very early KDE 6 release.

This commit is contained in:
wackyideas 2024-08-09 03:20:25 +02:00
parent 7cc4ccabbc
commit 686046d4f7
6272 changed files with 140920 additions and 529657 deletions

View file

@ -0,0 +1,152 @@
/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2018 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
"use strict";
var blacklist = [
// ignore black background behind lockscreen
"ksmserver ksmserver",
// The logout screen has to be animated only by the logout effect.
"ksmserver-logout-greeter ksmserver-logout-greeter",
// The lockscreen isn't a popup window
"kscreenlocker_greet kscreenlocker_greet",
// KDE Plasma splash screen has to be animated only by the login effect.
"ksplashqml ksplashqml"
];
var blacklistNames = [
"seventasks-floatingavatar",
"aerothemeplasma-windowframe-special"
];
function isPopupWindow(window) {
// If the window is blacklisted, don't animate it.
if (blacklist.indexOf(window.windowClass) != -1) {
return false;
}
if(blacklistNames.indexOf(window.caption) != -1) {
return false;
}
// Animate combo box popups, tooltips, popup menus, etc.
if (window.popupWindow) {
return true;
}
// Maybe the outline deserves its own effect.
if (window.outline) {
return true;
}
// Override-redirect windows are usually used for user interface
// concepts that are expected to be animated by this effect, e.g.
// popups that contain window thumbnails on X11, etc.
if (!window.managed) {
// Some utility windows can look like popup windows (e.g. the
// address bar dropdown in Firefox), but we don't want to fade
// them because the fade effect didn't do that.
if (window.utility) {
return false;
}
return true;
}
// Previously, there was a "monolithic" fade effect, which tried to
// animate almost every window that was shown or hidden. Then it was
// split into two effects: one that animates toplevel windows and
// this one. In addition to popups, this effect also animates some
// special windows(e.g. notifications) because the monolithic version
// was doing that.
if (window.dock || window.splash || window.toolbar
|| window.notification || window.onScreenDisplay
|| window.criticalNotification
|| window.appletPopup) {
return true;
}
return false;
}
var fadingPopupsEffect = {
loadConfig: function () {
fadingPopupsEffect.fadeInDuration = animationTime(150);
fadingPopupsEffect.fadeOutDuration = animationTime(150) * 4;
},
slotWindowAdded: function (window) {
if (effects.hasActiveFullScreenEffect) {
return;
}
if (!isPopupWindow(window)) {
return;
}
if (!window.visible) {
return;
}
if (!effect.grab(window, Effect.WindowAddedGrabRole)) {
return;
}
window.fadeInAnimation = animate({
window: window,
curve: QEasingCurve.Linear,
duration: fadingPopupsEffect.fadeInDuration,
type: Effect.Opacity,
from: 0.0,
to: 1.0
});
},
slotWindowClosed: function (window) {
if (effects.hasActiveFullScreenEffect) {
return;
}
if (!isPopupWindow(window)) {
return;
}
if (!window.visible || window.skipsCloseAnimation) {
return;
}
if (!effect.grab(window, Effect.WindowClosedGrabRole)) {
return;
}
window.fadeOutAnimation = animate({
window: window,
curve: QEasingCurve.OutQuart,
duration: fadingPopupsEffect.fadeOutDuration,
type: Effect.Opacity,
from: 1.0,
to: 0.0
});
},
slotWindowDataChanged: function (window, role) {
if (role == Effect.WindowAddedGrabRole) {
if (window.fadeInAnimation && effect.isGrabbed(window, role)) {
cancel(window.fadeInAnimation);
delete window.fadeInAnimation;
}
} else if (role == Effect.WindowClosedGrabRole) {
if (window.fadeOutAnimation && effect.isGrabbed(window, role)) {
cancel(window.fadeOutAnimation);
delete window.fadeOutAnimation;
}
}
},
init: function () {
fadingPopupsEffect.loadConfig();
effect.configChanged.connect(fadingPopupsEffect.loadConfig);
effects.windowAdded.connect(fadingPopupsEffect.slotWindowAdded);
effects.windowClosed.connect(fadingPopupsEffect.slotWindowClosed);
effects.windowDataChanged.connect(fadingPopupsEffect.slotWindowDataChanged);
}
};
fadingPopupsEffect.init();

View file

@ -0,0 +1,142 @@
{
"KPackageStructure": "KWin/Effect",
"KPlugin": {
"Authors": [
{
"Email": "vlad.zahorodnii@kde.org",
"Name": "Vlad Zahorodnii",
"Name[ar]": "فلاد زاهورودني",
"Name[az]": "Vlad Zahorodnii",
"Name[be]": "Vlad Zahorodnii",
"Name[bg]": "Vlad Zahorodnii",
"Name[ca@valencia]": "Vlad Zahorodnii",
"Name[ca]": "Vlad Zahorodnii",
"Name[cs]": "Vlad Zahorodnii",
"Name[de]": "Vlad Zahorodnii",
"Name[en_GB]": "Vlad Zahorodnii",
"Name[eo]": "Vlad Zahorodnii",
"Name[es]": "Vlad Zahorodnii",
"Name[et]": "Vlad Zahorodnii",
"Name[eu]": "Vlad Zahorodnii",
"Name[fi]": "Vlad Zahorodnii",
"Name[fr]": "Vlad Zahorodnii",
"Name[gl]": "Vlad Zahorodnii.",
"Name[he]": "ולאד זהורודני",
"Name[hu]": "Vlad Zahorodnii",
"Name[ia]": "Vlad Zahorodnii",
"Name[id]": "Vlad Zahorodnii",
"Name[is]": "Vlad Zahorodnii",
"Name[it]": "Vlad Zahorodnii",
"Name[ja]": "Vlad Zahorodnii",
"Name[ka]": "Vlad Zahorodnii",
"Name[ko]": "Vlad Zahorodnii",
"Name[lt]": "Vlad Zahorodnii",
"Name[nl]": "Vlad Zahorodnii",
"Name[nn]": "Vlad Zahorodnii",
"Name[pl]": "Vlad Zahorodnii",
"Name[pt]": "Vlad Zahorodnii",
"Name[pt_BR]": "Vlad Zahorodnii",
"Name[ro]": "Vlad Zahorodnii",
"Name[ru]": "Влад Загородний",
"Name[sk]": "Vlad Zahorodnii",
"Name[sl]": "Vlad Zahorodnii",
"Name[sv]": "Vlad Zahorodnii",
"Name[ta]": "விலாட் ஜாஹொரிடுனி",
"Name[tr]": "Vlad Zahorodnii",
"Name[uk]": "Влад Загородній",
"Name[vi]": "Vlad Zahorodnii",
"Name[x-test]": "xxVlad Zahorodniixx",
"Name[zh_CN]": "Vlad Zahorodnii",
"Name[zh_TW]": "Vlad Zahorodnii"
}
],
"Category": "Appearance",
"Description": "Make popups smoothly fade in and out when they are shown or hidden",
"Description[ar]": "اجعل النوافذ المنبثقة تظهر وتتلاشى بنعومة عند إظهاراها وإخفائها",
"Description[be]": "Плаўнае згасанне або з'яўленне выплыўных акон",
"Description[bg]": "Постепенно избледняване при показване и скриване на изскачащите прозорци",
"Description[ca@valencia]": "Fa que els missatges emergents s'encengen o s'apaguen de manera gradual quan es mostren o s'oculten",
"Description[ca]": "Fa que els missatges emergents s'encenguin o s'apaguin de manera gradual quan es mostren o s'oculten",
"Description[cs]": "Nechá vyskakovací okna plynule zmizet/objevit se, pokud jsou zobrazeny resp. skryty",
"Description[de]": "Blendet Aufklappfenster beim Öffnen/Schließen langsam ein bzw. aus",
"Description[en_GB]": "Make popups smoothly fade in and out when they are shown or hidden",
"Description[eo]": "Fari ŝprucfenestrojn glate mal- kaj fordissolvi kiam ili estas montritaj aŭ kaŝitaj",
"Description[es]": "Hacer que las ventanas emergentes se desvanezcan y reaparezcan suavemente al mostrarlas y al ocultarlas",
"Description[et]": "Paneb hüpikaknad sujuvalt hääbuma või tugevnema, kui need peidetakse või nähtavale tuuakse",
"Description[eu]": "Gainerakorrak emeki koloregabetu/koloretu haiek erakustean edo ezkutatzean",
"Description[fi]": "Häivyttää ponnahdusikkunat pehmeästi näytölle tai näytöltä",
"Description[fr]": "Faire un fondu enchaîné avant ou arrière des infobulles lorsqu'elles sont affichées ou masquées",
"Description[gl]": "Esvae e fai opacas as xanelas emerxentes con suavidade ao mostralas ou agochadas.",
"Description[he]": "לגרום לחלוניות צצות להתעמעם פנימה או החוצה בצורה חלקה כשהם מופיעים או מוסתרים",
"Description[hu]": "A felugrók folyamatosan áttűnő módon lesznek elrejtve és megjelenítve",
"Description[ia]": "Face que fenestras pote dulcemente pallidir intra e foras quando illos es monstrate o celate",
"Description[is]": "Láta sprettiglugga birtast og hverfa mjúklega þegar þeir eru opnaðir eða faldir",
"Description[it]": "Fai dissolvere e comparire gradualmente le finestre a comparsa quando vengono mostrate o nascoste",
"Description[ja]": "ポップアップが表示/非表示時にフェードします",
"Description[ka]": "მხტუნარების რბილი მინავლება და გამოჩენა, როცა ისინი იმალება ან გამოჩნდებიან",
"Description[ko]": "팝업이 보여지거나 감춰질 때 부드러운 페이드 인/아웃을 사용합니다",
"Description[lt]": "Padaryti, kad iškylantieji langai glotniai laipsniškai atsirastų ir išnyktų, kai yra rodomi ar slepiami",
"Description[nl]": "Laat pop-ups vloeiend opkomen/vervagen als ze worden weergegeven of verborgen",
"Description[nn]": "Ton sprettoppvindauge gradvis inn og ut når dei vert viste eller gøymde",
"Description[pl]": "Okna wysuwne gładko wyłaniają się przy otwieraniu i zanikają przy zamykaniu",
"Description[pt]": "Faz com que as janelas modais apareçam e desapareçam suavemente quando são apresentadas ou escondidas",
"Description[ro]": "Face indiciile să se (de)coloreze când sunt arătate sau ascunse",
"Description[ru]": "Всплывающие окна при закрытии будут становиться всё более прозрачными, а потом совсем исчезать",
"Description[sk]": "Plynulé objavovanie a miznutie vyskakovacích okien pri ich zobrazení alebo skrytí",
"Description[sl]": "Modalna okna naj se gladko odtemnijo oz. zatemnijo, kadar se prikažejo ali skrijejo",
"Description[ta]": "தெரித்தெழும் சாளரங்கள் காட்டப்படும்போது படிப்படியாக ஒளிகூடி மறைக்கப்படும்போது மங்கி செல்லும்",
"Description[tr]": "Açılır pencereler gösterilirken veya gizlenirken pürüzsüzce geçiş yapmalarını sağlar",
"Description[uk]": "Поступова поява або зникнення контекстних вікон вікон при відкритті чи закритті",
"Description[vi]": "Làm ô bật lên hiện dần và mờ dần một cách êm dịu khi chúng hiện ra và biến mất",
"Description[x-test]": "xxMake popups smoothly fade in and out when they are shown or hiddenxx",
"Description[zh_CN]": "气泡信息显示/隐藏时呈现渐入渐出过渡动画",
"Description[zh_TW]": "讓彈出視窗在顯示或隱藏的時候平滑地淡入或淡出",
"EnabledByDefault": true,
"Icon": "preferences-system-windows-effect-fadingpopups",
"Id": "fadingpopups",
"License": "GPL",
"Name": "Fading Popups",
"Name[ar]": "تتلاشى النوافذ المنبثقة",
"Name[be]": "Згасанне выплыўных акон",
"Name[bg]": "Избледняващи изскачащи прозорци",
"Name[ca@valencia]": "Missatges emergents esvaïts",
"Name[ca]": "Missatges emergents esvaïts",
"Name[cs]": "Mizející vyskakovací okna",
"Name[de]": "Überblendete Aufklappfenster",
"Name[en_GB]": "Fading Popups",
"Name[eo]": "Fading Popups",
"Name[es]": "Desvanecer ventanas emergentes",
"Name[et]": "Hääbuvad hüpikdialoogid",
"Name[eu]": "Itzaleztatzen diren gainerakorrak",
"Name[fi]": "Ponnahdusikkunoiden häivytys",
"Name[fr]": "Atténuation des infobulles",
"Name[gl]": "Xanelas emerxentes que esvaen",
"Name[he]": "חלונית צצות דועכות",
"Name[hu]": "Áttűnő felugrók",
"Name[ia]": "Popups dissolvente",
"Name[is]": "Dofnandi sprettigluggar",
"Name[it]": "Finestre a comparsa che si dissolvono",
"Name[ja]": "フェードするポップアップ",
"Name[ka]": "მინავლებადი მხტუნარები",
"Name[ko]": "페이드 팝업",
"Name[lt]": "Laipsniškai išnykstantys ir atsirandantys iškylantieji langai",
"Name[nl]": "Vervagende pop-ups",
"Name[nn]": "Inn- og uttoning av sprettoppvindauge",
"Name[pl]": "Zanikanie okien wysuwnych",
"Name[pt]": "Janelas a Desvanecer",
"Name[pt_BR]": "Desvanecer mensagens",
"Name[ro]": "Indicii estompate",
"Name[ru]": "Растворяющиеся всплывающие окна",
"Name[sk]": "Miznúce vyskakovacie okná",
"Name[sl]": "Prelivni pojavni gradniki",
"Name[ta]": "தெரித்தெழும் சாளரங்கள் மங்கும்",
"Name[tr]": "Solan Açılır Pencereler",
"Name[uk]": "Інтерактивні контекстні панелі",
"Name[vi]": "Ô bật lên ngả màu",
"Name[x-test]": "xxFading Popupsxx",
"Name[zh_CN]": "气泡显隐渐变动画",
"Name[zh_TW]": "淡化彈出視窗"
},
"X-KDE-Ordering": 60,
"X-Plasma-API": "javascript"
}