Announcement

Collapse
No announcement yet.

KSplashQML Themes

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KSplashQML Themes

    The Topic: KSplashQML ( http://kubuntuforums.net/forums/inde...opic=3119840.0) was moved out of my reach.

    It is now at the root of the Kubuntu 12.04 Precise Pangolin board, so i can't edit it.


    KSplashQML



    QtQuick Splash Screens: http://aseigo.blogspot.com/2011/11/p...spaces-48.html
    Right now, we do not have documentation on Techbase for this new addition but if one looks in kde-workspace/ksplash/ksplashqml/themes it becomes very apparent.
    KDE Projects: https://projects.kde.org/projects/kd...s/Minimalistic


    Kubuntu QML Splash screen: http://kde-look.org/content/show.php...content=147778
    Description:
    A splash screen for KDE that mimics the Kubuntu Plymouth splash screen theme, so you get a nice flicker-free and consistent system startup experience.

    PLEASE NOTE: This is a QML-based splash screen and no traditional KSplashX theme!
    For you this means: You need at least KDE 4.8 to use this theme!

    Writing an own theme

    Looking the examples: Minimalistic & Kubuntu QML Splash screen

    Making the directories:
    • /usr/share/kde4/apps/ksplash/Themes/OneLine/
    • /usr/share/kde4/apps/ksplash/Themes/OneLine/images/


    The ../ksplash/Themes/OneLine/ has

    main.qml
    Code:
    import Qt 4.7
    
    Item {
      id: main
    
      width: screenSize.width
      height: screenSize.height
    
      property int stage
    
      onStageChanged: {
        if (stage == 1) { pwfield.opacity = 0.9 }
        if (stage == 2) { pwfield.opacity = 0.8 }
        if (stage == 3) { pwfield.opacity = 0.6 }
        if (stage == 4) { pwfield.opacity = 0.4 }
        if (stage == 5) { pwfield.opacity = 0.2 }
      }
    
      Image {
       id: wallpaper
       
       height: parent.height
       width: parent.width
       
       x: 0
       y: 0
       
       source: "images/wallpaper.png"
      }
      
      Image {
       id: pwfield
       
       height: 262
       width: 416
       
       x: (parent.width - width) /2
       y: (parent.height - height ) /2
       
       source: "images/pwfield.png"
      }
    }
    Theme.rc
    Code:
    [KSplash Theme: OneLine]
    Name = Fading KDM Splash Screen
    Description = Smooth transition from the KDM to the desktop
    Version = 0.1
     Author = OneLine
    
    # Theme behaviour settings.
    Engine = KSplashQML
    and the preview image: Preview.png

    The ../ksplash/Themes/OneLine/images/ has

    The background/wallpaper image. Using the Ariya wallpaper (http://websvn.kde.org/?view=revision&revision=1269254).

    and a KDM mockup picture.



    Testing

    Testing the KSplash theme with the command:
    Code:
    sudo ksplashqml OneLine --test
    The theme has the Ariya wallpaper as background and the KDM password field is fading more or less smoothly to the desktop.

    Turning the Fading KDM splash screen as the default splasn screen. System Settings -> Workspace Appearance -> Splash Screen.




    Last edited by OneLine; Jan 25, 2012, 06:53 AM.
    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    #2
    Re: KSplashQML Themes

    Originally posted by OneLine
    The Topic: KSplashQML ( http://kubuntuforums.net/forums/inde...opic=3119840.0) was moved out of my reach.

    It is now at the root of the Kubuntu 12.04 Precise Pangolin board, so i can't edit it.
    My bad! I've (re)moved it to Kubuntu 12.04 Precise Pangolin | Pre-Release Testing.
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: KSplashQML Themes

      Thank you.
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment

      Working...
      X